Ticket #3984: management.diff
File management.diff, 781 bytes (added by , 18 years ago) |
---|
-
django/contrib/auth/management.py
12 12 def _get_all_permissions(opts): 13 13 "Returns (codename, name) for all permissions in the given opts." 14 14 perms = [] 15 for action in ('add', 'change', 'delete' ):16 perms.append((_get_permission_codename(action, opts), 'Can %s %s' % (action, opts.verbose_name )))15 for action in ('add', 'change', 'delete', 'view'): 16 perms.append((_get_permission_codename(action, opts), 'Can %s %s' % (action, opts.verbose_name_plural))) 17 17 return perms + list(opts.permissions) 18 18 19 19 def create_permissions(app, created_models, verbosity):