Ticket #4081: blank-flatpages.diff

File blank-flatpages.diff, 899 bytes (added by ctrochalakis, 17 years ago)

Allow blank flatpages content

  • 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'."))
Back to Top