Removed the get_error_url method and the error_url property, because we bounce to the same current URL now in the Mia core application.

This commit is contained in:
2020-08-14 01:01:45 +08:00
parent c353e17db2
commit 6e64918cd9
2 changed files with 1 additions and 23 deletions

View File

@ -1009,12 +1009,6 @@ class AccountFormView(FormView):
obj.title = form["title"].value()
obj.current_user = self.request.user
def get_error_url(self) -> str:
"""Returns the URL on error."""
user = self.get_object()
return reverse("accounting:accounts.create") if user is None\
else reverse("accounting:accounts.update", args=(user,))
def get_object(self) -> Optional[Account]:
"""Returns the current object, or None on a create form."""
if "account" in self.kwargs: