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.3.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

app_ordering-1.3-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: app_ordering-1.3.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for app_ordering-1.3.tar.gz
Algorithm Hash digest
SHA256 e08e89091dc1c94fab986927a0df78439c8496e6500a5779652a2511a64e832a
MD5 f0984f35834d730eb0f6cff48de2e0c6
BLAKE2b-256 7b6d14f105f0dd108661498f27e019b59b53dc0962509528cb1de8cd33d0bd48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: app_ordering-1.3-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for app_ordering-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b5c5c478bdbe6e8a90b95df9077ca3d01a75aaaa760f9a1713c3573e267eac33
MD5 1cb3e08f2a498123c9730786a72ad84b
BLAKE2b-256 20dcb535ceaa319b3614b29f42ac9535454349e43474d067275f406fbb013b22

See more details on using hashes here.

Supported by

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