X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/a10d536d08f92d270e9ddcb240b7eded89d0e707..e85955f9021223d2d859d2b641d3b316e932e115:/contrib/penfield/models.py?ds=inline 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()