From: Joseph Spiros Date: Thu, 12 Aug 2010 23:31:19 +0000 (-0400) Subject: The blog ForeignKey on the BlogEntry model can now be blank and null. X-Git-Tag: philo-0.9~36 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/bb938c5fa1db5fe9133c12385526b99fce343f87 The blog ForeignKey on the BlogEntry model can now be blank and null. --- diff --git a/contrib/penfield/models.py b/contrib/penfield/models.py index 957c277..bf5178e 100644 --- a/contrib/penfield/models.py +++ b/contrib/penfield/models.py @@ -26,7 +26,7 @@ register_value_model(Blog) class BlogEntry(Entity, Titled): - blog = models.ForeignKey(Blog, related_name='entries') + blog = models.ForeignKey(Blog, related_name='entries', blank=True, null=True) author = models.ForeignKey(getattr(settings, 'PHILO_PERSON_MODULE', 'auth.User'), related_name='blogentries') date = models.DateTimeField(default=datetime.now) content = models.TextField()