Skip to main content

Simply shuffles objects on admin changelist view

Project description

https://travis-ci.org/ojayyezzir/django-admin-shuffle.svg?branch=develop https://codecov.io/gh/ojayyezzir/django-admin-shuffle/branch/develop/graph/badge.svg

django-admin-shuffle simply shuffles objects on admin changelist view.

This app supports the following combinations of Django and Python:

Django

Python

2.1

3.6, 3.7, 3.8

2.2

3.6, 3.7, 3.8

3.0

3.6, 3.7, 3.8

https://raw.githubusercontent.com/ojayyezzir/django-admin-shuffle/9c8f75c043e185d4f8ee7f7ba50e775dca3b1b5b/example.gif

Installation

Add “admin_shuffle” to your INSTALLED_APPS setting like this

INSTALLED_APPS = [
    ...
    'admin_shuffle',
]

Integration Example

Add mixin to your admin model like this

from admin_shuffle import AdminShuffleMixin

class ExampleAdmin(AdminShuffleMixin, models.ModelAdmin):
    pass

Settings

  • SHUFFLE_QS_VALUE: Value of query string. By default, it is set to 'SHUFFLE'

  • SHUFFLE_LABEL: Label of the button that shuffles. By default, it is set to 'SHUFFLE'

Development / Example

  1. Run python -m django migrate --settings=example.settings to migrate.

  2. Run python -m django runserver --settings=example.settings to run server.

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

django_admin_shuffle-0.1.5-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file django_admin_shuffle-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: django_admin_shuffle-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.0

File hashes

Hashes for django_admin_shuffle-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6eaab8fd5c70c8e4c813113a18c69bb6ed83f1607d4710bd1ba548756c85e93d
MD5 7b7ddd570c2abb495fe5838acb373ee3
BLAKE2b-256 ce58f1781d238737d9a2ed5c6f7dcada35f6faf234c1b5d3a9b19b847223f62a

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