Skip to content

Commit

Permalink
Skip models.CharField in the super call in TimeZoneField formfield me…
Browse files Browse the repository at this point in the history
…thod since ultimately a forms.ChoiceField has no notion of max_length.

git-svn-id: https://django-timezones.googlecode.com/svn/trunk@21 86ebb30f-654e-0410-bc0d-7bf82786d749
  • Loading branch information
brosner committed Jul 29, 2008
1 parent f514bb8 commit fb58fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timezones/fields.py
Expand Up @@ -38,7 +38,7 @@ def flatten_data(self, follow, obj=None):
def formfield(self, **kwdargs):
defaults = {"form_class": forms.TimeZoneField}
defaults.update(kwdargs)
return super(TimeZoneField, self).formfield(**defaults)
return super(models.CharField, self).formfield(**defaults)

class LocalizedDateTimeField(models.DateTimeField):
"""
Expand Down

0 comments on commit fb58fe6

Please sign in to comment.