mirror of
https://github.com/django/django.git
synced 2025-06-08 13:09:13 +00:00
Added 'New in Django development version' notes to docs/model-api.txt regarding DecimalField and FloatField (see [5302])
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4c53116144
commit
35cc9d9b09
@ -185,7 +185,9 @@ The admin represents this as two ``<input type="text">`` fields, with
|
|||||||
JavaScript shortcuts.
|
JavaScript shortcuts.
|
||||||
|
|
||||||
``DecimalField``
|
``DecimalField``
|
||||||
~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
**New in Django development version**
|
||||||
|
|
||||||
A fixed-precision decimal number, represented in Python by a ``Decimal`` instance.
|
A fixed-precision decimal number, represented in Python by a ``Decimal`` instance.
|
||||||
Has two **required** arguments:
|
Has two **required** arguments:
|
||||||
@ -317,10 +319,17 @@ because the ``match`` applies to the base filename (``foo.gif`` and
|
|||||||
``FloatField``
|
``FloatField``
|
||||||
~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
**Changed in Django development version**
|
||||||
|
|
||||||
A floating-point number represented in Python by a ``float`` instance.
|
A floating-point number represented in Python by a ``float`` instance.
|
||||||
|
|
||||||
The admin represents this as an ``<input type="text">`` (a single-line input).
|
The admin represents this as an ``<input type="text">`` (a single-line input).
|
||||||
|
|
||||||
|
**NOTE:** The semantics of ``FloatField`` have changed in the Django
|
||||||
|
development version. See the `Django 0.96 documentation`_ for the old behavior.
|
||||||
|
|
||||||
|
.. _Django 0.96 documentation: http://www.djangoproject.com/documentation/0.96/model-api/#floatfield
|
||||||
|
|
||||||
``ImageField``
|
``ImageField``
|
||||||
~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user