8000 Bug with inline model simultaneous delete and modification · Issue #237 · django-ordered-model/django-ordered-model · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Bug with inline model simultaneous delete and modification #237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
shuckc opened this issue Apr 6, 2021 · 0 comments
Open

Bug with inline model simultaneous delete and modification #237

shuckc opened this issue Apr 6, 2021 · 0 comments

Comments

@shuckc
Copy link
Member
shuckc commented Apr 6, 2021

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).
image

Check box to Delete first item
Apply a modification to one of the remaining items.

image

Click "Save and Continue Editing" the form. Resulted in a corrupt ordering (order column: 1, 1):

image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0