Ticket #4081: blank-flatpages-with-documentation.diff
File blank-flatpages-with-documentation.diff, 1.5 KB (added by , 17 years ago) |
---|
-
django/contrib/flatpages/models.py
7 7 url = models.CharField(_('URL'), max_length=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'), max_length=200) 10 content = models.TextField(_('content') )10 content = models.TextField(_('content'), blank=True) 11 11 enable_comments = models.BooleanField(_('enable comments')) 12 12 template_name = models.CharField(_('template name'), max_length=70, blank=True, 13 13 help_text=_("Example: 'flatpages/contact_page.html'. If this isn't provided, the system will use 'flatpages/default.html'.")) -
docs/flatpages.txt
14 14 A flatpage can use a custom template or a default, systemwide flatpage 15 15 template. It can be associated with one, or multiple, sites. 16 16 17 **New in Django development version** 18 19 The content field may optionally be left blank if you prefer to put your 20 content in a custom template. 21 17 22 Here are some examples of flatpages on Django-powered sites: 18 23 19 * http://www. chicagocrime.org/about/24 * http://www.everyblock.com/about/ 20 25 * http://www.lawrence.com/about/contact/ 21 26 22 27 Installation