summaryrefslogtreecommitdiff
path: root/docs/model-api.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-19 20:51:00 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-19 20:51:00 +0000
commit9581c9ed96a841c90f780b8d3f0c455640e9418f (patch)
tree4476dead4fa7d90ef05505d4bca6aee76e7f31e5 /docs/model-api.txt
parentb0e1a1dda8c020cd6ebe07640fd5929cd5ee3345 (diff)
Added better description of SlugField
git-svn-id: http://code.djangoproject.com/svn/django/trunk@225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/model-api.txt')
-rw-r--r--docs/model-api.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt
index 56c1a8cd14..756e19c7b6 100644
--- a/docs/model-api.txt
+++ b/docs/model-api.txt
@@ -505,8 +505,9 @@ Field Types
(database-dependent) point.
``SlugField``
- A "slug," suitable for parts of a URL. Only allows alphanumeric characters
- and underscores.
+ "Slug" is a newspaper term. A slug is a short label for something,
+ containing only letters, numbers and underscores. They're generally used in
+ URLs.
Implies ``maxlength=50`` and ``db_index=True``.