summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_views/customadmin.py
diff options
context:
space:
mode:
authorJulien Phalip <jphalip@gmail.com>2012-07-21 18:10:24 -0700
committerJulien Phalip <jphalip@gmail.com>2012-07-21 18:10:24 -0700
commit01c392623d988d7486bdaa870886df0ea3da5fa7 (patch)
tree2d7f3814ad2d3e2cf2640806c658efab163586b2 /tests/regressiontests/admin_views/customadmin.py
parentea667ee3aeed33bce1dd681d9c0ea42f9926db5a (diff)
Fixed #10057 -- Ensured that the 'show_delete' context variable in the admin's change view actually controls the display of the delete button. Thanks to rajeesh for the report, to patcoll for the patch, and to David Gouldin for the test.
Diffstat (limited to 'tests/regressiontests/admin_views/customadmin.py')
-rw-r--r--tests/regressiontests/admin_views/customadmin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_views/customadmin.py b/tests/regressiontests/admin_views/customadmin.py
index d205e0e290..142527b022 100644
--- a/tests/regressiontests/admin_views/customadmin.py
+++ b/tests/regressiontests/admin_views/customadmin.py
@@ -48,3 +48,4 @@ site.register(models.Thing, base_admin.ThingAdmin)
site.register(models.Fabric, base_admin.FabricAdmin)
site.register(models.ChapterXtra1, base_admin.ChapterXtra1Admin)
site.register(User, UserLimitedAdmin)
+site.register(models.UndeletableObject, base_admin.UndeletableObjectAdmin)