Django Groot
Project description
Django Groot
An alternative admin interface for managing group permissions with django-guardian. Groot requires django-guardian for maintaining permissions, however Groot only focuses on groups for object permissions - per user object level permissions aren’t allowed for simplicity.
Installation
Using pip:
$ pip install django-groot
Follow the instructions for installing django-guardian if you haven’t already.
Edit your Django project’s settings module, and add groot:
INSTALLED_APPS = [
# ...
'groot',
]
Usage
Add GrootAdminMixin to the admin class you want Groot to be used on:
from django.contrib import admin
from groot.admin import GrootAdminMixin
from .models import Post
@admin.register(Post)
class PostAdmin(GrootAdminMixin, admin.ModelAdmin):
pass
To limit the permissions which can be edited, add a groot_permissions attribute:
class PostAdmin(GrootAdminMixin, admin.ModelAdmin):
groot_permissions = ('change_post', 'delete_post')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-groot-0.1.1.tar.gz.
File metadata
- Download URL: django-groot-0.1.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30f61d0d863c23fa0b9232d93b9b91e11f395e4c24bedb9f1c1512d06bf6d2ca
|
|
| MD5 |
a98732eb4c96d4eab8b2cdd5a1b0bb28
|
|
| BLAKE2b-256 |
aa9b3b771eecccf00853ed6a70ddc1de611387861e403ef65ec90ef79c35bd6f
|
File details
Details for the file django_groot-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: django_groot-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dec9781e0e9619ec24679757fdd3586615932e5520be21543f81087802905cf7
|
|
| MD5 |
369707c71489db13d4fef60dec82d74b
|
|
| BLAKE2b-256 |
aa6291aaa426c5d218b6aaf504ff33bb7836f677f98bad4375449c225210c3c5
|