Changes between Version 1 and Version 2 of Ticket #15294, comment 41
- Timestamp:
- Dec 2, 2011, 8:08:08 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15294, comment 41
v1 v2 8 8 - 'admin_url': mark_safe('%s/%s/' % (app_label, model.__name__.lower())), 9 9 + 'admin_url': reverse('admin:%s_%s_changelist' % info, current_app=self.name), 10 10 + 'add_url': reverse('admin:%s_%s_add' % info, current_app=self.name), 11 11 }}} 12 12 If the add or change permission is false, why bother resolving the url. Perhaps only include the 'add_url' when the 'add' permission exists?