Skip to content

Commit

Permalink
Added a pass through clean method for the formfield LocalizedDateTime…
Browse files Browse the repository at this point in the history
…Field.

git-svn-id: https://django-timezones.googlecode.com/svn/trunk@4 86ebb30f-654e-0410-bc0d-7bf82786d749
  • Loading branch information
brosner committed May 30, 2008
1 parent ea1cd7b commit 5cfd3c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions timezones/forms.py
@@ -1,5 +1,7 @@

from django import newforms as forms

class LocalizedDateTimeField(forms.Field):
pass
class LocalizedDateTimeField(forms.DateTimeField):
def clean(self, value):
value = super(LocalizedDateTimeField, self).clean(value)
return value

0 comments on commit 5cfd3c3

Please sign in to comment.