diff --git a/forum/models.py b/forum/models.py index dc0d207..93fa5ab 100644 --- a/forum/models.py +++ b/forum/models.py @@ -11,7 +11,6 @@ It's one kind of activity available for a Topic. It works like a 'topic' of forum, which users can post to it and answer posts of it. """ class Forum(Activity): - title = models.CharField(_('Title'), max_length = 100) description = models.TextField(_('Description'), blank = True) class Meta: @@ -19,7 +18,7 @@ class Forum(Activity): verbose_name_plural = _('Foruns') def __str__(self): - return self.title + return self.name """ It represents a post made in a forum (topic) @@ -28,7 +27,7 @@ class Post(models.Model): user = models.ForeignKey(User, verbose_name = _('Autor')) message = models.TextField(_('Post message'), blank = False) post_date = models.DateTimeField(_('Post Date'), auto_now_add = True) - forum = models.ForeignKey(Forum, _('Forum')) + forum = models.ForeignKey(Forum, verbose_name = _('Forum')) class Meta: verbose_name = _('Post') -- libgit2 0.21.2