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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_admin_shuffle-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 664feba6ab4dffa8b5dfef203841133a246aa6cf034ab3ad96181283577b087e
MD5 0ba633cae5efb7298d3924a6e7ef6105
BLAKE2b-256 73f616828a69aa7298de9a68d526c40555e99f2b5111298fde78ab9db449f99a

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