~ubuntu-branches/debian/sid/python-django/sid

« back to all changes in this revision

Viewing changes to tests/timezones/forms.py

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2014-09-17 14:15:11 UTC
  • mfrom: (1.3.17) (6.2.18 experimental)
  • Revision ID: package-import@ubuntu.com-20140917141511-icneokthe9ww5sk4
Tags: 1.7-2
* Release to unstable.
* Add a migrate-south sample script to help users apply their South
  migrations. Thanks to Brian May.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
from .models import Event
4
4
 
 
5
 
5
6
class EventForm(forms.Form):
6
7
    dt = forms.DateTimeField()
7
8
 
 
9
 
8
10
class EventSplitForm(forms.Form):
9
11
    dt = forms.SplitDateTimeField()
10
12
 
 
13
 
11
14
class EventLocalizedForm(forms.Form):
12
15
    dt = forms.DateTimeField(localize=True)
13
16
 
 
17
 
14
18
class EventModelForm(forms.ModelForm):
15
19
    class Meta:
16
20
        model = Event
17
21
        fields = '__all__'
18
22
 
 
23
 
19
24
class EventLocalizedModelForm(forms.ModelForm):
20
25
    class Meta:
21
26
        model = Event