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 Distribution

app_ordering-1.7.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

app_ordering-1.7-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file app_ordering-1.7.tar.gz.

File metadata

  • Download URL: app_ordering-1.7.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for app_ordering-1.7.tar.gz
Algorithm Hash digest
SHA256 89085f24867e4d62d15e3821aa55524d8dc63cf772e070c06f55f80137a9cdcb
MD5 82bc9bc8a6b240e0eb6d60eb6241de10
BLAKE2b-256 24c851d0b504abe54c82ddef4aa13ce3698bf0339c1e7c4dfd19e09a0fc65250

See more details on using hashes here.

File details

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

File metadata

  • Download URL: app_ordering-1.7-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for app_ordering-1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b819ff1fbe218f5540339b2e74f3721741370dd4347f1abcaf3623bc5486f56c
MD5 d316d42f95f663b0ab95ad866a986d40
BLAKE2b-256 6760040de54adae0db80fe2cbff9ff423820543afb4251fe1764d0f7c5af9ade

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