diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2007-03-29 11:46:26 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2007-03-29 11:46:26 +0000 |
| commit | aebd5f94a22814228966faca91cf1926a14c832a (patch) | |
| tree | 2f3f1530d3cc0769d593089cd0f910ff460dd6b5 | |
| parent | 5f68a26ff4eceaa46a6963184bb80d136d207828 (diff) | |
Fixed #3845 -- Added index to URL attribute of flatpages model.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4849 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/flatpages/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/flatpages/models.py b/django/contrib/flatpages/models.py index bc2a392121..8d0b2c0d90 100644 --- a/django/contrib/flatpages/models.py +++ b/django/contrib/flatpages/models.py @@ -4,7 +4,7 @@ from django.contrib.sites.models import Site from django.utils.translation import gettext_lazy as _ class FlatPage(models.Model): - url = models.CharField(_('URL'), maxlength=100, validator_list=[validators.isAlphaNumericURL], + url = models.CharField(_('URL'), maxlength=100, validator_list=[validators.isAlphaNumericURL], db_index=True, help_text=_("Example: '/about/contact/'. Make sure to have leading and trailing slashes.")) title = models.CharField(_('title'), maxlength=200) content = models.TextField(_('content')) |
