Commit fc0ed42281797e6854cb6999fa7d20d63d2cea32

Authored by Zambom
1 parent 546084b4

Removing 'title' field [Issue: #81]

Showing 1 changed file with 2 additions and 3 deletions   Show diff stats
forum/models.py
... ... @@ -11,7 +11,6 @@ It's one kind of activity available for a Topic.
11 11 It works like a 'topic' of forum, which users can post to it and answer posts of it.
12 12 """
13 13 class Forum(Activity):
14   - title = models.CharField(_('Title'), max_length = 100)
15 14 description = models.TextField(_('Description'), blank = True)
16 15  
17 16 class Meta:
... ... @@ -19,7 +18,7 @@ class Forum(Activity):
19 18 verbose_name_plural = _('Foruns')
20 19  
21 20 def __str__(self):
22   - return self.title
  21 + return self.name
23 22  
24 23 """
25 24 It represents a post made in a forum (topic)
... ... @@ -28,7 +27,7 @@ class Post(models.Model):
28 27 user = models.ForeignKey(User, verbose_name = _('Autor'))
29 28 message = models.TextField(_('Post message'), blank = False)
30 29 post_date = models.DateTimeField(_('Post Date'), auto_now_add = True)
31   - forum = models.ForeignKey(Forum, _('Forum'))
  30 + forum = models.ForeignKey(Forum, verbose_name = _('Forum'))
32 31  
33 32 class Meta:
34 33 verbose_name = _('Post')
... ...