Changes between Initial Version and Version 1 of Ticket #17283
- Timestamp:
- Nov 25, 2011, 9:33:03 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17283 – Description
initial v1 1 1 The following code snippet 2 2 3 {{{ 4 #!python 3 5 from django import forms 4 6 from django.utils.translation import ugettext_lazy as _ … … 6 8 class SearchForm( forms.Form): 7 9 d_o_b = forms.DateField( _( 'Human Readable Name'), required=False, input_formats=('%d-%m-%Y',)) 8 9 causes django to complain __init__() got multiple values for keyword argument 'input_formats'10 }}} 11 causes django to complain `__init__() got multiple values for keyword argument 'input_formats'` 10 12 11 13 while 14 {{{ 15 #!python 12 16 d_o_b = form.DateField( required=False, input_formats=('%d-%m-%Y',)) 17 }}} 13 18 works fine. 14 19