Implemented object deletion on null values. Added ModelChoiceWidget to ContentReferences.
[philo.git] / contrib / penfield / models.py
index 957c277..bf5178e 100644 (file)
@@ -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()