diff options
| author | Julien Phalip <jphalip@gmail.com> | 2012-07-21 18:10:24 -0700 |
|---|---|---|
| committer | Julien Phalip <jphalip@gmail.com> | 2012-07-21 18:10:24 -0700 |
| commit | 01c392623d988d7486bdaa870886df0ea3da5fa7 (patch) | |
| tree | 2d7f3814ad2d3e2cf2640806c658efab163586b2 /tests/regressiontests/admin_views/models.py | |
| parent | ea667ee3aeed33bce1dd681d9c0ea42f9926db5a (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/models.py')
| -rw-r--r-- | tests/regressiontests/admin_views/models.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_views/models.py b/tests/regressiontests/admin_views/models.py index ab2bc202f9..aee193b572 100644 --- a/tests/regressiontests/admin_views/models.py +++ b/tests/regressiontests/admin_views/models.py @@ -611,3 +611,10 @@ class UnorderedObject(models.Model): """ name = models.CharField(max_length=255) bool = models.BooleanField(default=True) + +class UndeletableObject(models.Model): + """ + Model whose show_delete in admin change_view has been disabled + Refs #10057. + """ + name = models.CharField(max_length=255) |
