mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-24 16:20:32 +02:00
Temporary disable payment form
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -456,8 +456,6 @@ class PaymentUpdateView(LoginRequiredMixin, UpdateView):
|
||||
def get_form(self, form_class=None):
|
||||
form = super().get_form(form_class)
|
||||
if not self.request.user.registration.is_admin:
|
||||
from django.forms.widgets import Select
|
||||
widget: Select
|
||||
form.fields["type"].widget.choices = list(form.fields["type"].widget.choices)[:-1]
|
||||
del form.fields["valid"]
|
||||
return form
|
||||
|
Reference in New Issue
Block a user