mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Fixed #7200 -- Added newforms documentation for the FloatField. Thanks, George Vilches.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7677 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -1382,6 +1382,20 @@ extra arguments: | ||||
|                                 as choices. | ||||
|     ==============  ==========  =============================================== | ||||
|  | ||||
| ``FloatField``  | ||||
| ~~~~~~~~~~~~~~  | ||||
|  | ||||
|     * Default widget: ``TextInput``  | ||||
|     * Empty value: ``None``  | ||||
|     * Normalizes to: A Python float.  | ||||
|     * Validates that the given value is an float. Leading and trailing  | ||||
|       whitespace is allowed, as in Python's ``float()`` function.  | ||||
|     * Error message keys: ``required``, ``invalid``, ``max_value``,  | ||||
|       ``min_value``  | ||||
| 	  | ||||
| Takes two optional arguments for validation, ``max_value`` and ``min_value``.  | ||||
| These control the range of values permitted in the field. | ||||
|  | ||||
| ``ImageField`` | ||||
| ~~~~~~~~~~~~~~ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user