mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-08-03 22:24:34 +02:00
Minor fix
This commit is contained in:
@@ -818,7 +818,7 @@ class WEIUpdateRegistrationView(ProtectQuerysetMixin, LoginRequiredMixin, Update
|
|||||||
form.fields["deposit_type"].required = True
|
form.fields["deposit_type"].required = True
|
||||||
form.fields["deposit_type"].help_text = _("Choose how you want to pay the deposit")
|
form.fields["deposit_type"].help_text = _("Choose how you want to pay the deposit")
|
||||||
|
|
||||||
if not self.object.first_year and self.object.deposit_type == 'check':
|
if not self.object.first_year and self.request.user.has_perm("wei.change_weiregistration_deposit_given") and self.object.deposit_type == 'check':
|
||||||
form.fields["deposit_given"] = forms.BooleanField(
|
form.fields["deposit_given"] = forms.BooleanField(
|
||||||
required=False,
|
required=False,
|
||||||
initial=self.object.deposit_given,
|
initial=self.object.deposit_given,
|
||||||
|
Reference in New Issue
Block a user