Skip to content

Commit

Permalink
Disable low income check-box
Browse files Browse the repository at this point in the history
  • Loading branch information
darkturo committed Feb 26, 2024
1 parent d03bbac commit 036cfff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pretix-borderland/pretix_borderland/forms/lottery.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ class RegisterForm(forms.ModelForm):
widget=DatePickerWidget(),
)

applied_low_income = forms.BooleanField(widget=forms.CheckboxInput(attrs={'class': 'form-check-input'}),
applied_low_income = forms.BooleanField(#widget=forms.CheckboxInput(attrs={'class': 'form-check-input'}),
widget=forms.HiddenInput(),
initial=False,
required=False,
disabled=False,
disabled=True,
label="Low income membership?")

class Meta:
model = LotteryEntry
fields = ["email", "email_again", "first_name", "last_name", "dob", "dob_again", "applied_low_income"]
fields = ["email", "email_again", "first_name", "last_name", "dob", "dob_again"] #, "applied_low_income"]

0 comments on commit 036cfff

Please sign in to comment.