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.8.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.8-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for app_ordering-1.8.tar.gz
Algorithm Hash digest
SHA256 c372ee7fbc0c6545a91260769258db7bd411725e987409c635af91bef3bc7875
MD5 174b939f3d5be747ceb39bc1d4d32102
BLAKE2b-256 17bbd8d9cde798fb6b9d83a5ed635fd66bd7eafad38216b6ab08dcb00d28a43e

See more details on using hashes here.

Provenance

The following attestation bundles were made for app_ordering-1.8.tar.gz:

Publisher: publish.yml on kajalagroup/django-admin-app-ordering

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

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

File hashes

Hashes for app_ordering-1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 51aedd8bd445815610d111598a54cad16268777d2a1334a7c91fafe3a0775107
MD5 eb8d9cd5e4222d58fa9db0df4fcd9094
BLAKE2b-256 1991e0c9e4a028daeda79eae190b7966ace3c645a95ad899d595ecf8d76f18e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for app_ordering-1.8-py3-none-any.whl:

Publisher: publish.yml on kajalagroup/django-admin-app-ordering

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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