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


Ignore:
Timestamp:
Dec 2, 2011, 8:08:08 AM (13 years ago)
Author:
Ramiro Morales

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