Ticket #4081: blank-flatpages-with-documentation.diff

File blank-flatpages-with-documentation.diff, 1.5 KB (added by mcroydon, 17 years ago)

Added note about new functionality in the documentation; also swapped out chicagocrime link for everyblock link

  • django/contrib/flatpages/models.py

     
    77    url = models.CharField(_('URL'), max_length=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'), max_length=200)
    10     content = models.TextField(_('content'))
     10    content = models.TextField(_('content'), blank=True)
    1111    enable_comments = models.BooleanField(_('enable comments'))
    1212    template_name = models.CharField(_('template name'), max_length=70, blank=True,
    1313        help_text=_("Example: 'flatpages/contact_page.html'. If this isn't provided, the system will use 'flatpages/default.html'."))
  • docs/flatpages.txt

     
    1414A flatpage can use a custom template or a default, systemwide flatpage
    1515template. It can be associated with one, or multiple, sites.
    1616
     17**New in Django development version**
     18
     19The content field may optionally be left blank if you prefer to put your
     20content in a custom template.
     21
    1722Here are some examples of flatpages on Django-powered sites:
    1823
    19     * http://www.chicagocrime.org/about/
     24    * http://www.everyblock.com/about/
    2025    * http://www.lawrence.com/about/contact/
    2126
    2227Installation
Back to Top