mirror of
https://github.com/django/django.git
synced 2024-11-29 22:56:46 +01:00
c3791463a5
Signed-off-by: Jason Myers <jason@jasonamyers.com>
29 lines
528 B
Python
29 lines
528 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 EventLocalizedForm(forms.Form):
|
|
dt = forms.DateTimeField(localize=True)
|
|
|
|
|
|
class EventModelForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Event
|
|
fields = '__all__'
|
|
|
|
|
|
class EventLocalizedModelForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Event
|
|
fields = '__all__'
|
|
localized_fields = '__all__'
|