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
Remove the admin_view_permission from your INSTALLED_APPS setting
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)
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-admin-view-permission-0.5.tar.gz | 6.1 kB | Without provenance | 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 |
Security for django-admin-view-permission 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.