code: def _get_all_permissions(opts):
      "Returns (codename, name) for all permissions in the given opts."
      perms = []
      for action in settings.DEFAULT_PERMISSIONS:
          perms.append((_get_permission_codename(action, opts), 'Can %s %s' % (action, opts.verbose_name_raw)))
      return perms + list(opts.permissionsf _get_all_permissions(opts):
      "Returns (codename, name) for all permissions in the given opts."
      perms = []
      for action in settings.DEFAULT_PERMISSIONS:
          perms.append((_get_permission_codename(action, opts), 'Can %s %s' % (action, opts.verbose_name_raw)))
      return perms + list(opts.permissions)
docs: Returns (codename, name) for all permissions in the given opts.