Update web/core/forms.py

This commit is contained in:
Joshua Laymon 2025-09-06 19:28:36 +00:00
parent 89c6cc5077
commit d532b9faf2

View File

@ -3,12 +3,10 @@ from .models_ann import Announcement
from django.forms import ModelForm, Textarea from django.forms import ModelForm, Textarea
from django.utils import timezone from django.utils import timezone
class ImportForm(forms.Form): class ImportForm(forms.Form):
file = forms.FileField(allow_empty_file=False) file = forms.FileField(allow_empty_file=False)
dry_run = forms.BooleanField(initial=True, required=False, help_text="Preview changes without saving") dry_run = forms.BooleanField(initial=True, required=False, help_text="Preview changes without saving")
class EntryForm(forms.Form): class EntryForm(forms.Form):
subject = forms.CharField(required=False) subject = forms.CharField(required=False)
illustration = forms.CharField(required=False, widget=forms.Textarea) illustration = forms.CharField(required=False, widget=forms.Textarea)