Errors on "Save as new" preclude saving a new record
|Reported by:||David S. <davidschein@…>||Owned by:||adrian|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.