Changes between Version 1 and Version 2 of Ticket #15294, comment 41


Ignore:
Timestamp:
12/02/2011 08:08:08 AM (4 years ago)
Author:
ramiro
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15294, comment 41

    v1 v2  
    88-        'admin_url': mark_safe('%s/%s/' % (app_label, model.__name__.lower())),
    99+        'admin_url': reverse('admin:%s_%s_changelist' % info, current_app=self.name),
    10          'add_url': reverse('admin:%s_%s_add' % info, current_app=self.name),
     10+        'add_url': reverse('admin:%s_%s_add' % info, current_app=self.name),
    1111}}}
    1212If the add or change permission is false, why bother resolving the url. Perhaps only include the 'add_url' when the 'add' permission exists?
Back to Top