mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 18:22:23 +00:00
Allow organizers to submit payment forms
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
6b7b802d14
commit
f9645b016a
@ -480,8 +480,8 @@ class PaymentUpdateView(LoginRequiredMixin, UpdateView):
|
|||||||
if self.request.user.registration.participates:
|
if self.request.user.registration.participates:
|
||||||
if old_instance.valid is not False:
|
if old_instance.valid is not False:
|
||||||
raise PermissionDenied(_("This payment is already valid or pending validation."))
|
raise PermissionDenied(_("This payment is already valid or pending validation."))
|
||||||
else:
|
if old_instance.valid is False:
|
||||||
form.instance.valid = None
|
form.instance.valid = None
|
||||||
if old_instance.receipt:
|
if old_instance.receipt:
|
||||||
old_instance.receipt.delete()
|
old_instance.receipt.delete()
|
||||||
old_instance.save()
|
old_instance.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user