1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-04 01:32:11 +02:00

Organizers can add other organizers

This commit is contained in:
2021-02-16 10:58:14 +01:00
parent 6c064d6570
commit a7665d41b7
2 changed files with 4 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class AddOrganizerView(VolunteerMixin, CreateView):
del context["admin_registration_form"].fields["email_confirmed"]
if not self.request.user.registration.is_admin:
del context["form"].fields["type"]
context["form"].fields["type"].widget.attrs['readonly'] = True
del context["admin_registration_form"]
return context