4 | | if True in perms.values(): |
5 | | info = (app_label, model._meta.module_name) |
6 | | model_dict = { |
7 | | 'name': capfirst(model._meta.verbose_name_plural), |
8 | | 'admin_url': mark_safe('%s/%s/' % (app_label, model.__name__.lower())), |
9 | | '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), |
| 4 | if True in perms.values(): |
| 5 | info = (app_label, model._meta.module_name) |
| 6 | model_dict = { |
| 7 | 'name': capfirst(model._meta.verbose_name_plural), |
| 8 | - 'admin_url': mark_safe('%s/%s/' % (app_label, model.__name__.lower())), |
| 9 | + '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), |