#9651 closed (fixed)
[9297] breaks save_as in inline admin forms
Reported by: | yamad | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | Keywords: | ||
Cc: | andreas@…, kmike84@…, smathieson@…, ciantic@…, Robin Breathe | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Attachments (2)
Change History (19)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
comment:3 by , 16 years ago
Cc: | added |
---|
comment:4 by , 16 years ago
comment:5 by , 16 years ago
comment:6 by , 16 years ago
Cc: | added |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:7 by , 16 years ago
Cc: | added |
---|
by , 16 years ago
Attachment: | patch1.diff added |
---|
comment:8 by , 16 years ago
Has patch: | set |
---|
I think that when "Save as new" option is active foreign keys in inlines are still pointing to old objects and it causes the problem.
Please check the patch. Tests are from #9663.
comment:9 by , 16 years ago
I've stressed your change with complex model relations and your patch works fine, great!
comment:10 by , 16 years ago
Cc: | added |
---|
comment:13 by , 16 years ago
Cc: | added |
---|---|
milestone: | → 1.1 |
comment:14 by , 16 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
This patch looks good as is. Tests pass and make sense, also working on site. Just updating to current trunk and marking 'ready for checkin'
comment:15 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:16 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
#9663 reports this again and provides tests to demonstrate the failure.