Code

Ticket #10997: 10997.diff

File 10997.diff, 546 bytes (added by Tarken, 5 years ago)

Simple enough patch. Shouldn't be any docs/tests required. Pulled this straight from options.py

Line 
1Index: django/contrib/admin/actions.py
2===================================================================
3--- django/contrib/admin/actions.py     (revision 10674)
4+++ django/contrib/admin/actions.py     (working copy)
5@@ -12,6 +12,10 @@
6 from django.utils.safestring import mark_safe
7 from django.utils.text import capfirst
8 from django.utils.translation import ugettext_lazy, ugettext as _
9+try:
10+    set
11+except NameError:
12+    from sets import Set as set     # Python 2.3 fallback
13 
14 def delete_selected(modeladmin, request, queryset):
15     """