Skip to content

Commit

Permalink
fix: redirect to correct pages after admin imports
Browse files Browse the repository at this point in the history
Show the correct statistics after an import.
  • Loading branch information
toabctl committed Jul 6, 2024
1 parent 389c9e4 commit e274f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django-kitamanager/kitamanager/admin/bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _import(self, request):
else:
messages.success(request, _(f"bank account entry {baentry} updated successful"))

return redirect(reverse("admin:kitamanager_bankaccountentry_changelist"))
return redirect(reverse("kitamanager:bankaccount-list"))
else:
form = BankAccountEntryImportForm()
context["form"] = form
Expand Down
2 changes: 1 addition & 1 deletion django-kitamanager/kitamanager/admin/revenue.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _import(self, request):
child_db.voucher = voucher
child_db.save()

return redirect(reverse("admin:kitamanager_revenueentry_changelist"))
return redirect(reverse("kitamanager:child-statistics"))
else:
form = BerlinInvoiceImportForm()

Expand Down

0 comments on commit e274f9d

Please sign in to comment.