diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-02-17 18:15:07 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-02-17 18:15:07 +0000 |
| commit | 97eb38b21dfa2750f50b3a933adaf19661345dab (patch) | |
| tree | 731dbbf94be9d42cedd1dc65acf20dabd26af6d0 /docs/model-api.txt | |
| parent | 6b694097dc22569f1b86feec20a1ff30a2b14b26 (diff) | |
Fixed #1296 -- Made SlugField maxlength configurable. Thanks, Matt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/model-api.txt')
| -rw-r--r-- | docs/model-api.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt index d7ac7d6fe5..e84de76db7 100644 --- a/docs/model-api.txt +++ b/docs/model-api.txt @@ -410,7 +410,11 @@ Here are all available field types: containing only letters, numbers, underscores or hyphens. They're generally used in URLs. - Implies ``maxlength=50`` and ``db_index=True``. + In the Django development version, you can specify ``maxlength``. If + ``maxlength`` is not specified, Django will use a default length of 50. In + previous Django versions, there's no way to override the length of 50. + + Implies ``db_index=True``. Accepts an extra option, ``prepopulate_from``, which is a list of fields from which to auto-populate the slug, via JavaScript, in the object's admin |
