Skip to main content

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.

screenshot

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

app_ordering-1.5-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file app_ordering-1.5-py3-none-any.whl.

File metadata

  • Download URL: app_ordering-1.5-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for app_ordering-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 70f71115fd2993d8a84ef08ca54c835b1e61e6a76b0a7c194d7e6963a2c318c2
MD5 150e550cfa40ad7a2e59079e8815c496
BLAKE2b-256 cec254acb67068c04b60610e2abee5823ae67ca8e514471ec5e5c5838ffa5b42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page