mirror of
https://github.com/django/django.git
synced 2024-12-28 12:06:22 +00:00
0d2a24fd42
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
19 lines
542 B
Python
19 lines
542 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()
|
|
integer_field = forms.IntegerField()
|
|
|
|
class SelectDateForm(forms.Form):
|
|
date_field = forms.DateField(widget=SelectDateWidget)
|
|
|
|
class CompanyForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Company
|