Simply shuffles objects on admin changelist view
Project description
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 |
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
Run python -m django migrate --settings=example.settings to migrate.
Run python -m django runserver --settings=example.settings to run server.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c55c623a57086d3c7839f115e882a3f6dbe934d5479c68d9cfcffc44659db09 |
|
MD5 | 8b62a3d216cfc471147098ed7321f1a0 |
|
BLAKE2b-256 | e6373a7fec99ac40fc9e5a2a3d8ed0741269849ac1c2660679abf8a5db420e6c |