Changes between Initial Version and Version 1 of Ticket #29285


Ignore:
Timestamp:
Apr 3, 2018, 2:42:52 AM (6 years ago)
Author:
Claude Paroz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29285 – Description

    initial v1  
    11Documentation (https://docs.djangoproject.com/en/2.0/ref/forms/fields/#decimalfield) states that max_decimal_places is a kwarg
    22
     3{{{
    34File "/Users/paulkorir/Documents/Code/Python/Django/project-classified/project_classified/listings/forms.py", line 48, in AdvancedSearch
    45    price_minimum = forms.DecimalField(required=False, min_value=0, max_value=2, max_decimal_places=2)
     
    89    super().__init__(**kwargs)
    910TypeError: __init__() got an unexpected keyword argument 'max_decimal_places'
     11}}}
    1012
    1113However, works with decimal_places instead of max_decimal_places
Back to Top