diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2007-09-19 23:33:57 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2007-09-19 23:33:57 +0000 |
| commit | 980fa8b827485616c597a39ec975735c412fd59d (patch) | |
| tree | f9f1f9668e724431a34dc158393c389d7594c5c4 /docs | |
| parent | d022e2581d444bb17f8236bc83d33c003f75888e (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/model-api.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt index adb9cfceb1..2f40abd3a9 100644 --- a/docs/model-api.txt +++ b/docs/model-api.txt @@ -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`` ~~~~~~~~~~~~~~~~ |
