From 97eb38b21dfa2750f50b3a933adaf19661345dab Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 17 Feb 2006 18:15:07 +0000 Subject: Fixed #1296 -- Made SlugField maxlength configurable. Thanks, Matt git-svn-id: http://code.djangoproject.com/svn/django/trunk@2325 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/model-api.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs') 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 -- cgit v1.3