Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Groot

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')

Metadata

Release files for django-groot 0.1.1

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-groot 0.1.1
File Size Uploaded
django-groot-0.1.1.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-groot 0.1.1
File Interpreter ABI Platform
django_groot-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 17.1 kB

Release files / django-groot-0.1.1.tar.gz

Download URL django-groot-0.1.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
30f61d0d863c23fa0b9232d93b9b91e11f395e4c24bedb9f1c1512d06bf6d2ca
BLAKE2b-256 checksum
How to use checksums
aa9b3b771eecccf00853ed6a70ddc1de611387861e403ef65ec90ef79c35bd6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_groot-0.1.1-py2.py3-none-any.whl

Download URL django_groot-0.1.1-py2.py3-none-any.whl
Size 10.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
dec9781e0e9619ec24679757fdd3586615932e5520be21543f81087802905cf7
BLAKE2b-256 checksum
How to use checksums
aa6291aaa426c5d218b6aaf504ff33bb7836f677f98bad4375449c225210c3c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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