mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-18 00:21:14 +10:00
oops
This commit is contained in:
@@ -272,7 +272,7 @@ class give_ban(forms.ModelForm):
|
|||||||
]
|
]
|
||||||
# In the future we can add options for IP bans and shit.
|
# In the future we can add options for IP bans and shit.
|
||||||
reason = forms.CharField(required=True, widget=forms.Textarea(attrs={'class': 'textarea'}))
|
reason = forms.CharField(required=True, widget=forms.Textarea(attrs={'class': 'textarea'}))
|
||||||
expiry_date = forms.ChoiceField(required=True, choices=BAN_OPTIONS, initial=1)
|
expiry_date = forms.ChoiceField(required=False, choices=BAN_OPTIONS, initial=1)
|
||||||
purge = forms.ChoiceField(required=True, choices=((1, "Purge"), (2, "Don't purge")))
|
purge = forms.ChoiceField(required=True, choices=((1, "Purge"), (2, "Don't purge")))
|
||||||
|
|
||||||
def clean_expiry_date(self):
|
def clean_expiry_date(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user