Django

Code

Changeset 7807

Show
Ignore:
Timestamp:
06/30/08 08:05:47 (2 months ago)
Author:
mtredinnick
Message:

Fixed #4081 -- Allow empty content in flatpages.
Patch from ctrochalakis and Matt Croydon.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/flatpages/models.py

    r7651 r7807  
    99        help_text=_("Example: '/about/contact/'. Make sure to have leading and trailing slashes.")) 
    1010    title = models.CharField(_('title'), max_length=200) 
    11     content = models.TextField(_('content')
     11    content = models.TextField(_('content'), blank=True
    1212    enable_comments = models.BooleanField(_('enable comments')) 
    1313    template_name = models.CharField(_('template name'), max_length=70, blank=True, 
  • django/trunk/docs/flatpages.txt

    r7555 r7807  
    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