Ticket #3845: flatpages_models.diff

File flatpages_models.diff, 743 bytes (added by Simon G. <dev@…>, 18 years ago)

adds db_index=True to flatpages

  • django/contrib/flatpages/models.py

     
    44from django.utils.translation import gettext_lazy as _
    55
    66class 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,
    88        help_text=_("Example: '/about/contact/'. Make sure to have leading and trailing slashes."))
    99    title = models.CharField(_('title'), maxlength=200)
    1010    content = models.TextField(_('content'))
Back to Top