javascript - Allowing user to rearrange entries in Django admin site and how to store that new custom order to survive page refresh? -


i have html , javascript in place allows user move django database entries (displayed in table) , down. however, there way can store new order user has customized show time user navigates specific page view? think get_queryset causing page (after refreshing) switch basic filtering. but, have no ideas on how override or avoid accomplish task. appreciated!

i suggest using ready solutions: django-admin-sortable or django-admin-sortable2. me, have used second solution , works. 1 important note run ./manage.py reorder my_app.models.mymodel after adding new order field mentioned here.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -