Opened 18 years ago
Closed 18 years ago
#3374 closed (worksforme)
Errors on "Save as new" preclude saving a new record
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
If you save a record with "Save as new" and there are errors, you are left in an add_stage so that "Save as new" is no longer available (it's replaced with "Save and add another".)
So now, the user may correct the error, but each of their submit options will actually modify the record rather than create a new one as originally intended.
I could not find a context variable that django.contrib.admin.templatetags.admin_modify.submit_row could use to determine that show_save_as_new should be True.
Can you give some more information about the model that you're using and an exact way of recreating the error? I've tried a few here but can't seem to replicate it.