Changes between Initial Version and Version 1 of Ticket #17283


Ignore:
Timestamp:
Nov 25, 2011, 9:33:03 AM (13 years ago)
Author:
Karen Tracey
Comment:

Fixed formatting. Please use WikiFormatting and preview before posting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17283 – Description

    initial v1  
    11The following code snippet
    22
     3{{{
     4#!python
    35from django import forms
    46from django.utils.translation import ugettext_lazy as _
     
    68class SearchForm( forms.Form):
    79    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}}}
     11causes django to complain `__init__() got multiple values for keyword argument 'input_formats'`
    1012
    1113while
     14{{{
     15#!python
    1216    d_o_b = form.DateField( required=False, input_formats=('%d-%m-%Y',))
     17}}}
    1318works fine.
    1419
Back to Top