forms.py 262 B

12345678910111213
  1. from django import forms
  2. from .models import Event
  3. class EventForm(forms.Form):
  4. dt = forms.DateTimeField()
  5. class EventSplitForm(forms.Form):
  6. dt = forms.SplitDateTimeField()
  7. class EventModelForm(forms.ModelForm):
  8. class Meta:
  9. model = Event