Ticket #8078: sets.diff
File sets.diff, 1.1 KB (added by , 16 years ago) |
---|
-
django/contrib/admin/options.py
14 14 from django.utils.text import capfirst, get_text_list 15 15 from django.utils.translation import ugettext as _ 16 16 from django.utils.encoding import force_unicode 17 import sets 17 try: 18 set 19 except NameError: 20 from sets import Set as set # Python 2.3 fallback 18 21 19 22 HORIZONTAL, VERTICAL = 1, 2 20 23 # returns the <ul> class for a given radio_admin field … … 646 649 # Populate deleted_objects, a data structure of all related objects that 647 650 # will also be deleted. 648 651 deleted_objects = [mark_safe(u'%s: <a href="../../%s/">%s</a>' % (escape(force_unicode(capfirst(opts.verbose_name))), quote(object_id), escape(obj))), []] 649 perms_needed = set s.Set()652 perms_needed = set() 650 653 get_deleted_objects(deleted_objects, perms_needed, request.user, obj, opts, 1, self.admin_site) 651 654 652 655 if request.POST: # The user has already confirmed the deletion.