mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user