mirror of
https://github.com/django/django.git
synced 2024-11-19 07:54:07 +00:00
14 lines
262 B
Python
14 lines
262 B
Python
|
from django import forms
|
||
|
|
||
|
from .models import Event
|
||
|
|
||
|
class EventForm(forms.Form):
|
||
|
dt = forms.DateTimeField()
|
||
|
|
||
|
class EventSplitForm(forms.Form):
|
||
|
dt = forms.SplitDateTimeField()
|
||
|
|
||
|
class EventModelForm(forms.ModelForm):
|
||
|
class Meta:
|
||
|
model = Event
|