jazzband / django-floppyforms

Full control of form rendering in the templates.
http://django-floppyforms.readthedocs.org/
Other
841 stars 148 forks source link

DateInput ignores format kwarg #164

Closed orestis closed 8 years ago

orestis commented 8 years ago

Should be pretty obvious:

def __init__(self, attrs=None, format=None):
    super(DateInput, self).__init__(attrs)
    self.format = '%Y-%m-%d'
gregmuellegger commented 8 years ago

Hey, thanks for the input. It's actually not that obvious :) This originates from the work on #115. I've added a comment to the code to make clear why we are doing this: 53d1d8a8d7f00c14bdc6249afd9242ba1748fe3b