Changes between Initial Version and Version 1 of Ticket #17283


Ignore:
Timestamp:
11/25/2011 09:33:03 AM (4 years ago)
Author:
kmtracey
Comment:

Fixed formatting. Please use WikiFormatting and preview before posting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17283

    • Property Needs documentation unset
    • Property Needs tests unset
    • Property Patch needs improvement unset
  • 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