From cc2232ac1fe0497203e386521cb91c01c83060ea Mon Sep 17 00:00:00 2001 From: Kriti Godey Date: Mon, 5 Jul 2010 23:59:35 +0530 Subject: [PATCH] Fixed null constraint on entries_per_page in BlogView --- contrib/penfield/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/penfield/models.py b/contrib/penfield/models.py index ec8ba69..d1695e7 100644 --- a/contrib/penfield/models.py +++ b/contrib/penfield/models.py @@ -50,7 +50,7 @@ class BlogView(MultiView): entry_archive_page = models.ForeignKey(Page, related_name='blog_entry_archive_related', null=True, blank=True) tag_page = models.ForeignKey(Page, related_name='blog_tag_related') tag_archive_page = models.ForeignKey(Page, related_name='blog_tag_archive_related', null=True, blank=True) - entries_per_page = models.IntegerField(blank=True, validators=[validate_pagination_count]) + entries_per_page = models.IntegerField(blank=True, validators=[validate_pagination_count], null=True) entry_permalink_style = models.CharField(max_length=1, choices=ENTRY_PERMALINK_STYLE_CHOICES) entry_permalink_base = models.CharField(max_length=255, blank=False, default='entries') -- 2.20.1