Opened 18 years ago
Closed 18 years ago
#5735 closed (fixed)
transaction for newforms-admin
| Reported by: | Honza Král | Owned by: | jkocherhans |
|---|---|---|---|
| Component: | Uncategorized | Version: | newforms-admin |
| Severity: | Keywords: | nfa-blocker admin transaction | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
When I try and save some object in admin that has some edit_inline and some error occurs while saving those, the DB is inconsistent - the main object exists, as well as some of the inline objects, but not all of them. Would it break anything to wrap save_change and save_add in django.db.transaction.commit_on_success?
Attachments (1)
Change History (4)
by , 18 years ago
| Attachment: | 5735against6470.patch added |
|---|
comment:1 by , 18 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 18 years ago
| Keywords: | nfa-blocker added |
|---|
I think that this should be included before a merge to trunk. I am tagging with nfa-blocker to get this patch ready for inclusion soon.
comment:3 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Jacob and I discussed this IRL, and he thinks this looks like the right solution.