mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #231: all fields that should take max_length now do. Thanks, Don Spaulding.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d022e2581d
commit
980fa8b827
13 changed files with 94 additions and 24 deletions
|
@ -293,6 +293,12 @@ visiting its URL on your site. Don't allow that.
|
|||
|
||||
.. _`strftime formatting`: http://docs.python.org/lib/module-time.html#l2h-1941
|
||||
|
||||
**New in development version:**
|
||||
|
||||
By default, file fields are created as ``varchar(100)`` database fields. Like
|
||||
other fields, you can change the maximum length using the ``max_length``
|
||||
argument.
|
||||
|
||||
``FilePathField``
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
@ -330,6 +336,12 @@ not the full path. So, this example::
|
|||
because the ``match`` applies to the base filename (``foo.gif`` and
|
||||
``bar.gif``).
|
||||
|
||||
**New in development version:**
|
||||
|
||||
By default, file fields are created as ``varchar(100)`` database fields. Like
|
||||
other fields, you can change the maximum length using the ``max_length``
|
||||
argument.
|
||||
|
||||
``FloatField``
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
|
@ -361,6 +373,12 @@ Requires the `Python Imaging Library`_.
|
|||
.. _Python Imaging Library: http://www.pythonware.com/products/pil/
|
||||
.. _elsewhere: ../db-api/#get-foo-height-and-get-foo-width
|
||||
|
||||
**New in development version:**
|
||||
|
||||
By default, file fields are created as ``varchar(100)`` database fields. Like
|
||||
other fields, you can change the maximum length using the ``max_length``
|
||||
argument.
|
||||
|
||||
``IntegerField``
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue