Skip to main content

A simple Django app which adds view permissions.

Project description

Build Status Coverage Status Code Climate

Reusable application which provides a view permission for the existing models.


  • Django


The package is deprecated for Django 2.1. Django added the functionality into the core ( the 2 implementations are different). You should use this package only if you use Django < 2.1.

  • If you have installed this package by accident to your Django 2.1 project, it won’t affect the build-in view permission which comes with Django.
  • If you have upgraded you application to use Django > 2.1 just uninstall this package
  • Django: 1.8, 1.9, 1.10, 1.11, 2.0
  • Python: 2.7, 3.4, 3.5, 3.6

Compatible with django-parler’s translatable models. To verify which django-parler version our test suite runs against, check requirements-debug.txt. You do not need django-parler to install django-admin-view-permission.


For a full documentation you can visit:


  • pip install django-admin-view-permission

and then add admin_view_permission at the INSTALLED_APPS like this:


and finally run python migrate.

You need to place the admin_view_permission before django.contrib.admin in INSTALLED_APPS.

In case of a customized AdminSite in order to apply the view permission, you should inherit from the AdminViewPermissionAdminSite class:

from admin_view_permission.admin import AdminViewPermissionAdminSite

class MyAdminSite(AdminViewPermissionAdminSite):


This app provides a setting:


in which you can provide which models you want to be added the view permission. If you don’t specify this setting then the view permission will be applied to all the models.


  1. Remove the admin_view_permission from your INSTALLED_APPS setting

  2. Delete the view permissions from the database:

    from django.contrib.auth.models import Permission
    permissions = Permission.objects.filter(codename__startswith='view')

    It will be helpful to check if the queryset contains only the view permissions and not anything else (for example: custom permission added)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-admin-view-permission, version 1.9
Filename, size File type Python version Upload date Hashes
Filename, size django-admin-view-permission-1.9.tar.gz (9.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page