Code

Ticket #3522: deleted_objects_fix.diff

File deleted_objects_fix.diff, 562 bytes (added by philippe.raoult@…, 7 years ago)
Line 
1Index: django/contrib/admin/options.py
2===================================================================
3--- django/contrib/admin/options.py     (revision 4995)
4+++ django/contrib/admin/options.py     (working copy)
5@@ -507,6 +507,7 @@
6         "The 'delete' admin view for this model."
7         from django.contrib.contenttypes.models import ContentType
8         from django.contrib.admin.models import LogEntry, DELETION
9+        from django.contrib.admin.views.main import _get_deleted_objects
10         opts = self.model._meta
11         app_label = opts.app_label
12