NoReverseMatch if save_as = True in admin

12 views
Skip to first unread message

Павел Серов

unread,
Jan 13, 2017, 5:37:37 PM1/13/17
to Django users
Hello.
I've got a problem.
I'm trying to use 'save_as' feature in admin, but there is unexpected behavior.
When I'm just opening form and click "save as new", I get this:
NoReverseMatch at /admin/rid/expendituresurid/11/change/
Reverse for 'rid_expendituresurid_delete' with arguments '('',)' and keyword arguments '{}' not found. 1 pattern(s) tried: ['admin/rid/expendituresurid/(.+)/delete/$']
As you can see, for some reasons it tries to delete something, but it actually shouldn't.
I know that there are catched validation errors in form (uniqueness violation), so it should just show them as it usually do.
But in this case, it didn't show errors and instead get another exception))
I didn't found any solution in google.
Please, help.
Reply all
Reply to author
Forward
0 new messages