Skip to content
Snippets Groups Projects
Commit c115f430 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

fix syntax

parent b9d0dab2
No related branches found
No related tags found
1 merge request!16Sepaxml
Pipeline #134666 failed
...@@ -289,7 +289,7 @@ class MarkPayedView(PermissionRequiredMixin, View): ...@@ -289,7 +289,7 @@ class MarkPayedView(PermissionRequiredMixin, View):
def dispatch(self, request, token): def dispatch(self, request, token):
self.object = get_object_or_404(self.model, token=token) self.object = get_object_or_404(self.model, token=token)
if self.object.status not PaymentStatus.PREAUTH: if self.object.status != PaymentStatus.PREAUTH:
return reverse("invoice_by_token", args=[self.object.token]) return reverse("invoice_by_token", args=[self.object.token])
else: else:
self.object.status = "confirmed" self.object.status = "confirmed"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment