Skip to main content

Fresh Django permissions widget

Project description

https://pypip.in/d/django-permissions-widget/badge.png https://pypip.in/v/django-permissions-widget/badge.png

By default, Django’s admin provides a permission widget which looks like this:

http://permissions-widget.readthedocs.org/en/latest/_static/images/default_widget.png

There are several problems with this widget:

  • the permission description is cut, see the fourth line: ‘admin_test_autocomplete | bar | Can add l’. The administrator will not be able to read it and might report it as a bug.

  • it proposes permissions for admin.logentry. The administrator will not understand what this is about and will ask you about it.

  • it uses a widget which might be new to the administrator and he might ask how to use it.

The purpose of this app is to provide a better widget for selecting permissions as well as an easy way to replace the default permissions widget in your admin site. It will look like this:

http://permissions-widget.readthedocs.org/en/latest/_static/images/new_widget.png

Requirements

  • Maintained against Python 2.7

  • and Django 1.5

Quick Install

  • Install the latest release via: pip install django-permissions-widget.

  • Add to settings.INSTALLED_APPS, after django.contrib.admin which we want to override: ‘permissions_widget’,. If you are using custom user modeal as for Django 1.5 - you have to add ‘permissions_widget’, after the app, that contains your custom user model.

That’s it ! You should have a sane permissions widget now.

Resources

Project details


Download files

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

Source Distribution

django-permissions-widget-1.5.2.tar.gz (17.8 kB view details)

Uploaded Source

File details

Details for the file django-permissions-widget-1.5.2.tar.gz.

File metadata

  • Download URL: django-permissions-widget-1.5.2.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for django-permissions-widget-1.5.2.tar.gz
Algorithm Hash digest
SHA256 1db48efebbf0ff50190d9f93ecf92718bd7f458fb6d780af27601cb0bf58d744
MD5 830f142e3b28142f978cd6c9a76388b1
BLAKE2b-256 58e82293ffcd3c81c1a5b39b1118f22f165f12766f0996038c8cf9ac5af88605

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page