Bug with inline model simultaneous delete and modification · Issue #237 · django-ordered-model/django-ordered-model · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many to one model, using admin order from 3.4.1, no multi-user access.
Create 3 items and reload main model (I have put the expected ordering in the desc column for illustration).
Check box to Delete first item
Apply a modification to one of the remaining items.
Click "Save and Continue Editing" the form. Resulted in a corrupt ordering (order column: 1, 1):
The up shuffle to reset order fields for the delete seemed to work for all but the modified item who's order was seemingly persisted to the original value as part of the save. This left a duplicate 1 item and a gap for zero.
It seems like our delete code interacts badly with simultaneous save? I'll try and put this into a unit test.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Many to one model, using admin order from 3.4.1, no multi-user access.

Create 3 items and reload main model (I have put the expected ordering in the
desc
column for illustration).Check box to Delete first item
Apply a modification to one of the remaining items.
Click "Save and Continue Editing" the form. Resulted in a corrupt ordering (order column: 1, 1):
The up shuffle to reset order fields for the delete seemed to work for all but the modified item who's
order
was seemingly persisted to the original value as part of thesave
. This left a duplicate 1 item and a gap for zero.It seems like our delete code interacts badly with simultaneous save? I'll try and put this into a unit test.
The text was updated successfully, but these errors were encountered: