Opened 10 years ago

Closed 10 years ago

#3374 closed (worksforme)

Errors on "Save as new" preclude saving a new record

Reported by: David S. <davidschein@…> Owned by: Adrian Holovaty
Component: contrib.admin Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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.

Change History (1)

comment:1 Changed 10 years ago by Simon G. <dev@…>

Resolution: worksforme
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top