order starts with -1
Closed this issue · 4 comments
sigma-plus commented
when drag with SortableAdminMixin
in Admin List , the post request is "updatedItems:[["9", -1], ["8", 0]]" . The order field starts with "-1", which is invalid with PositiveIntegerField.
Django Version: 5.1.2
jrief commented
could you please give me a receipt on how to reproduce this using the provided testapp
.
sigma-plus commented
jrief commented
If you create the objects yourself, you then of course have to provide the initial data yourself.
sigma-plus commented
If you create the objects yourself, you then of course have to provide the initial data yourself.
thanks for your reply. but it's wired when you cannot reorder the admin list items when these items has equal order value 0
.