Ticket #3845: flatpages_models.diff
File flatpages_models.diff, 743 bytes (added by , 18 years ago) |
---|
-
django/contrib/flatpages/models.py
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'))