forms.py 259 B

123456789
  1. import datetime
  2. from django import forms
  3. from .widgets import DatePickerWidget
  4. class CreateEventForm(forms.Form):
  5. event_name = forms.CharField(label='Event name', max_length=100)
  6. event_date = forms.Field(label='Event date', widget=DatePickerWidget)