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 |
Add "admin_shuffle" to your INSTALLED_APPS setting like this
INSTALLED_APPS = [
...
'admin_shuffle',
]
Add mixin to your admin model like this
from admin_shuffle import AdminShuffleMixin
class ExampleAdmin(AdminShuffleMixin, models.ModelAdmin):
pass
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'
- Run
python -m django migrate --settings=example.settings
to migrate. - Run
python -m django runserver --settings=example.settings
to run server.