Display django permissions in a tabular format that is user friendly, and highly customisable
Project description
# django-tabular-permissions
Display Django basic permissions (add, change & delete) in a tabular format that is user friendly, translatable and easy customized.
If you have more customised permissions, the default `FilteredSelectMultiple` widget will also appear to handle those permissions.
Installation
------------
...to be updated
Usage:
------
add "tabular_permissions" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'tabular_permissions',
]
Configurations
--------------
`TABULAR_PERMISSIONS_EXCLUDE`
By default tabulat_permssions exclude apps `sessions` , `contenttypes` and `admin` apps from
showing their models in teh permissions table.
You can add (or override) those apps and/or specify models to exclude
in our settings.py add :
TABULAR_PERMISSIONS_EXCLUDE = {
'app': [],
'model': [],
'override': False # or set to True to override default behaviour.
}
`TABULAR_PERMISSIONS_AUTO_IMPLEMENT`:
By default, just by including `tabular_permissions` in your installed_apps, the `django.contrib.admin.UserAdmin` (and `GroupAdmin`)
is "patched" to include the tabular_permissions widget.
If you have a custom UserAdmin, then set this option to False and make sure you either :
* Inherit from `TabularPermissionsUserAdmin` , or ,
* Inherit from `TabularPermissionsAdmin` (from tabular_permissions.admin) before admin.ModelAdmin or UserAdmin,
* Set the user_permissions widget to `tabular_permissions.widgets.TabularPermissionsWidget`
Customizing display:
--------------------
Override or extend template ,
Display Django basic permissions (add, change & delete) in a tabular format that is user friendly, translatable and easy customized.
If you have more customised permissions, the default `FilteredSelectMultiple` widget will also appear to handle those permissions.
Installation
------------
...to be updated
Usage:
------
add "tabular_permissions" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'tabular_permissions',
]
Configurations
--------------
`TABULAR_PERMISSIONS_EXCLUDE`
By default tabulat_permssions exclude apps `sessions` , `contenttypes` and `admin` apps from
showing their models in teh permissions table.
You can add (or override) those apps and/or specify models to exclude
in our settings.py add :
TABULAR_PERMISSIONS_EXCLUDE = {
'app': [],
'model': [],
'override': False # or set to True to override default behaviour.
}
`TABULAR_PERMISSIONS_AUTO_IMPLEMENT`:
By default, just by including `tabular_permissions` in your installed_apps, the `django.contrib.admin.UserAdmin` (and `GroupAdmin`)
is "patched" to include the tabular_permissions widget.
If you have a custom UserAdmin, then set this option to False and make sure you either :
* Inherit from `TabularPermissionsUserAdmin` , or ,
* Inherit from `TabularPermissionsAdmin` (from tabular_permissions.admin) before admin.ModelAdmin or UserAdmin,
* Set the user_permissions widget to `tabular_permissions.widgets.TabularPermissionsWidget`
Customizing display:
--------------------
Override or extend template ,
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
Close
Hashes for django-tabular-permissions-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 403cc64d5e66c258d6080a83d8ac271c8bc2db73549525e9b3a64e0487188486 |
|
MD5 | d8118b97723ac11c150eda1a79ff787f |
|
BLAKE2b-256 | d33f9ea001c3f2dd14c15003511dc9cfeddb3558e474ca8fe2d81eb5f64a1bf2 |