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

Uploaded Python 3

File details

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

File metadata

  • Download URL: app_ordering-1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 7ec3e4c7cb5faa22b042186ca6f4130d227e51834ecdd825d290e38f580a2363
MD5 a28fd759c0694e520fc2133a9da399f6
BLAKE2b-256 c9ded93e7fb4674ddfe9d48448b943b5bf86b6b06eb031f3007e6836dd28eedf

See more details on using hashes here.

Provenance

The following attestation bundles were made for app_ordering-1.9.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.9-py3-none-any.whl.

File metadata

  • Download URL: app_ordering-1.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 0fc50d7ad03d912a4d43320f9b42bd27b51ee996a7a6be08ca6a9eb7483219b0
MD5 c8be8e5c5636fe53693f78879f4552c3
BLAKE2b-256 84cd2fc7dec5ecb731fa9d5481eabcb490e6d321574d3676abaf5672dfe062f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for app_ordering-1.9-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