Commit fc0ed42281797e6854cb6999fa7d20d63d2cea32
1 parent
546084b4
Exists in
master
and in
5 other branches
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,7 +11,6 @@ It's one kind of activity available for a Topic. | ||
11 | It works like a 'topic' of forum, which users can post to it and answer posts of it. | 11 | It works like a 'topic' of forum, which users can post to it and answer posts of it. |
12 | """ | 12 | """ |
13 | class Forum(Activity): | 13 | class Forum(Activity): |
14 | - title = models.CharField(_('Title'), max_length = 100) | ||
15 | description = models.TextField(_('Description'), blank = True) | 14 | description = models.TextField(_('Description'), blank = True) |
16 | 15 | ||
17 | class Meta: | 16 | class Meta: |
@@ -19,7 +18,7 @@ class Forum(Activity): | @@ -19,7 +18,7 @@ class Forum(Activity): | ||
19 | verbose_name_plural = _('Foruns') | 18 | verbose_name_plural = _('Foruns') |
20 | 19 | ||
21 | def __str__(self): | 20 | def __str__(self): |
22 | - return self.title | 21 | + return self.name |
23 | 22 | ||
24 | """ | 23 | """ |
25 | It represents a post made in a forum (topic) | 24 | It represents a post made in a forum (topic) |
@@ -28,7 +27,7 @@ class Post(models.Model): | @@ -28,7 +27,7 @@ class Post(models.Model): | ||
28 | user = models.ForeignKey(User, verbose_name = _('Autor')) | 27 | user = models.ForeignKey(User, verbose_name = _('Autor')) |
29 | message = models.TextField(_('Post message'), blank = False) | 28 | message = models.TextField(_('Post message'), blank = False) |
30 | post_date = models.DateTimeField(_('Post Date'), auto_now_add = True) | 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 | class Meta: | 32 | class Meta: |
34 | verbose_name = _('Post') | 33 | verbose_name = _('Post') |