Sorting and toggle visible for Django admin apps
Project description
Django admin app ordering
Django admin app ordering is a Django app to able ordering apps and models in the Django admin site, it also support to toggle visiblity app or model.
Summary this are features:
- Sorting admin app, models.
- Toggle visibility admin app, models.
- Configure sorting/visibility app(model) for certain users or groups.
Install
pip install app_ordering
Add "app_ordering" and "adminsortable2" to app list:
INSTALLED_APPS = [
....
"app_ordering",
"adminsortable2"
]
adminsortable2 is third party to help you to manipulate sorting easier.
Add get_package_template_dir("app_ordering") to TEMPLATES.DIR Remember to import get_package_template_dir in the settings.py
from app_ordering.helpers import get_package_template_dir
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
"DIRS": [
get_package_template_dir("app_ordering"),
],
...
},
]
Profile:
- Default profile will be used as default if you don't set any specific profile for logged in user.
Extend template:
If you want to custom app_list.html, better you should take a look at app_ordering/templates/admin/app_list.html and custom based on that
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
app_ordering-1.1.tar.gz
(9.9 kB
view hashes)
Built Distribution
app_ordering-1.1-py3-none-any.whl
(12.9 kB
view hashes)
Close
Hashes for app_ordering-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cbe6e7f1361fff079955eb8f2a54ad54fe2d4e9eb5bf1ae36827916607b3037 |
|
MD5 | f5a9df2771cf3d7914cc5b9c147b8a4c |
|
BLAKE2b-256 | 5c766de1028fcf6021e4da503eb48cd73ded7e2526b138d1df1eda67185632b6 |