class BlogEntry(Entity, Titled):
blog = models.ForeignKey(Blog, related_name='entries')
author = models.ForeignKey(getattr(settings, 'PHILO_PERSON_MODULE', 'auth.User'), related_name='blogentries')
date = models.DateTimeField(default=datetime.now)
content = models.TextField()
class BlogEntry(Entity, Titled):
blog = models.ForeignKey(Blog, related_name='entries')
author = models.ForeignKey(getattr(settings, 'PHILO_PERSON_MODULE', 'auth.User'), related_name='blogentries')
date = models.DateTimeField(default=datetime.now)
content = models.TextField()
- excerpt = models.TextField()
- tags = models.ManyToManyField(Tag, related_name='blogentries')
+ excerpt = models.TextField(blank=True, null=True)
+ tags = models.ManyToManyField(Tag, related_name='blogentries', blank=True, null=True)
entry_permalink_base = models.CharField(max_length=255, blank=False, default='entries')
tag_permalink_base = models.CharField(max_length=255, blank=False, default='tags')
entry_permalink_base = models.CharField(max_length=255, blank=False, default='entries')
tag_permalink_base = models.CharField(max_length=255, blank=False, default='tags')