Commits

Matthew Schinckel committed c6c7a72

Fix typo. Don't pass through a max_length to formfield.

Comments (0)

Files changed (2)

weekday_field/fields.py

     
 try:
     from south.modelsinspector import add_introspection_rules
-    add_introspection_rules([], ['^weekday_fields\.fields\.WeekdayField'])
+    add_introspection_rules([], ['^weekday_field\.fields\.WeekdayField'])
 except ImportError:
     pass

weekday_field/forms.py

 class WeekdayFormField(forms.TypedMultipleChoiceField):
     def __init__(self, *args, **kwargs):
         kwargs['choices'] = utils.DAY_CHOICES
+        kwargs.pop('max_length', None)
         super(WeekdayFormField, self).__init__(*args, **kwargs)