diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-06-30 13:05:47 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-06-30 13:05:47 +0000 |
| commit | 4b93eed185c52a422bea3e73fe215db7c2746595 (patch) | |
| tree | c86b3fbf69fa06367b5e762aca4a3d1502a5802c /django | |
| parent | 339df5ce446afb1bac8356453a890f89d0220fd6 (diff) | |
Fixed #4081 -- Allow empty content in flatpages.
Patch from ctrochalakis and Matt Croydon.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7807 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/flatpages/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/flatpages/models.py b/django/contrib/flatpages/models.py index ddd5678379..d61e9a3b1c 100644 --- a/django/contrib/flatpages/models.py +++ b/django/contrib/flatpages/models.py @@ -8,7 +8,7 @@ class FlatPage(models.Model): url = models.CharField(_('URL'), max_length=100, validator_list=[validators.isAlphaNumericURL], db_index=True, help_text=_("Example: '/about/contact/'. Make sure to have leading and trailing slashes.")) title = models.CharField(_('title'), max_length=200) - content = models.TextField(_('content')) + content = models.TextField(_('content'), blank=True) enable_comments = models.BooleanField(_('enable comments')) template_name = models.CharField(_('template name'), max_length=70, blank=True, help_text=_("Example: 'flatpages/contact_page.html'. If this isn't provided, the system will use 'flatpages/default.html'.")) |
