Django GroupAdmin Users
Edit users in group from the Group add and edit pages.
Credit goes to this Stack Overflow answer
Installation
Works with Django version 1.8 to 3.1.
Tested with Django-supported Python versions.
Install with:
pip install django-groupadmin-users
Usage
Add ‘’groupadmin_users’’ to INSTALLED_APPS after ‘’django.contrib.auth’’. That’s it.
Alternatively, don’t add ‘’groupadmin_users’’ to INSTALLED_APPS, but use and further customize this code:
from django.contrib import admin
from django.contrib.auth.models import Group
from groupadmin_users.forms import GroupAdminForm
# Unregister the original Group admin.
admin.site.unregister(Group)
# Create a new Group admin.
class GroupAdmin(admin.ModelAdmin):
# Use our custom form.
form = GroupAdminForm
# Filter permissions horizontal as well.
filter_horizontal = ['permissions']
# Register the new Group ModelAdmin.
admin.site.register(Group, GroupAdmin)
Demo
Example image from Stack Overflow answer:
Metadata
Release files for django-groupadmin-users 0.3.4
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 | Actions |
|---|---|---|---|---|
| django-groupadmin-users-0.3.4.tar.gz | 4.2 kB | Without provenance | Details for django-groupadmin-users-0.3.4.tar.gz |
Release files / django-groupadmin-users-0.3.4.tar.gz
| Download URL | django-groupadmin-users-0.3.4.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50311c0362191664d9e27457d4014fe3126ec8e04702b10827433e45e650f0f5
|
|
BLAKE2b-256 checksum How to use checksums |
e08ec1c1af76ba05fceae7c2c076d845cf0f109cd63670fe373f7d1a1c496b62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.7
|
Security for django-groupadmin-users 0.3.4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.