Skip to main content
Build Status Coverage Status Code Climate

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

Requirements

  • Django

Support

  • Django: 1.8, 1.9, 1.10

  • Python: 2.7, 3.4, 3.5

Documentation

For a full documentation you can visit: http://django-admin-view-permission.readthedocs.org/

Setup

  • pip install django-admin-view-permission

and then add admin_view_permission at the INSTALLED_APPS like this:

INSTALLED_APPS = [
    'admin_view_permission',
    'django.contrib.admin',
    ...
]

and finally run python manage.py migrate.

Configuration

This app provides a setting:

ADMIN_VIEW_PERMISSION_MODELS = [
    auth.User,
    ...
]

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.

Uninstall

  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')
    permissions.delete()

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

Release files for django-admin-view-permission 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-admin-view-permission 0.5
File Size Uploaded
django-admin-view-permission-0.5.tar.gz 6.1 kB Details

Release files / django-admin-view-permission-0.5.tar.gz

Download URL django-admin-view-permission-0.5.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
386beb7955eb80d91925029d0ac7d2ec19c9dbd72b4976ec574dd682090a3ef0
BLAKE2b-256 checksum
How to use checksums
4fb360b9686478294034fa7c5850964b79086a12408a09723442f3e9dc6abb71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.9

1 release file

1.8

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

This release

0.5 This release

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page