Skip to main content

Simply shuffles objects on admin changelist view

Project description

GitHub https://travis-ci.org/ojayyezzir/django-admin-shuffle.svg?branch=develop https://codecov.io/gh/ojayyezzir/django-admin-shuffle/branch/develop/graph/badge.svg https://img.shields.io/pypi/v/django-admin-shuffle.svg https://img.shields.io/pypi/pyversions/django-admin-shuffle.svg PyPI - Status PyPI - Downloads

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_admin_shuffle-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3c55c623a57086d3c7839f115e882a3f6dbe934d5479c68d9cfcffc44659db09
MD5 8b62a3d216cfc471147098ed7321f1a0
BLAKE2b-256 e6373a7fec99ac40fc9e5a2a3d8ed0741269849ac1c2660679abf8a5db420e6c

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