1
0
mirror of https://github.com/django/django.git synced 2024-12-27 03:25:58 +00:00
django/tests/regressiontests/i18n/forms.py

18 lines
501 B
Python

from django import template, forms
from django.forms.extras import SelectDateWidget
from models import Company
class I18nForm(forms.Form):
decimal_field = forms.DecimalField()
float_field = forms.FloatField()
date_field = forms.DateField()
datetime_field = forms.DateTimeField()
time_field = forms.TimeField()
class SelectDateForm(forms.Form):
date_field = forms.DateField(widget=SelectDateWidget)
class CompanyForm(forms.ModelForm):
class Meta:
model = Company