Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit aebd5f94a22814228966faca91cf1926a14c832a 1 parent 5f68a26
Russell Keith-Magee authored March 29, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/flatpages/models.py
2  django/contrib/flatpages/models.py
@@ -4,7 +4,7 @@
4 4
 from django.utils.translation import gettext_lazy as _
5 5
 
6 6
 class FlatPage(models.Model):
7  
-    url = models.CharField(_('URL'), maxlength=100, validator_list=[validators.isAlphaNumericURL],
  7
+    url = models.CharField(_('URL'), maxlength=100, validator_list=[validators.isAlphaNumericURL], db_index=True,
8 8
         help_text=_("Example: '/about/contact/'. Make sure to have leading and trailing slashes."))
9 9
     title = models.CharField(_('title'), maxlength=200)
10 10
     content = models.TextField(_('content'))

0 notes on commit aebd5f9

Please sign in to comment.
Something went wrong with that request. Please try again.