Commit 21b49d36360d4f362742aa6527193cb3e0270c36
1 parent
525e272f
Exists in
master
and in
5 other branches
fixed error on Forum app models
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
forum/models.py
@@ -17,6 +17,7 @@ class Forum(Activity): | @@ -17,6 +17,7 @@ class Forum(Activity): | ||
17 | class Meta: | 17 | class Meta: |
18 | verbose_name = _('Forum') | 18 | verbose_name = _('Forum') |
19 | verbose_name_plural = _('Foruns') | 19 | verbose_name_plural = _('Foruns') |
20 | + app_label = 'forum' | ||
20 | 21 | ||
21 | def __str__(self): | 22 | def __str__(self): |
22 | return self.title | 23 | return self.title |
@@ -32,6 +33,7 @@ class Post(models.Model): | @@ -32,6 +33,7 @@ class Post(models.Model): | ||
32 | class Meta: | 33 | class Meta: |
33 | verbose_name = _('Post') | 34 | verbose_name = _('Post') |
34 | verbose_name_plural = _('Posts') | 35 | verbose_name_plural = _('Posts') |
36 | + app_label = 'forum' | ||
35 | 37 | ||
36 | def __str__(self): | 38 | def __str__(self): |
37 | return ''.join([self.user.name, " / ", self.post_date]) | 39 | return ''.join([self.user.name, " / ", self.post_date]) |
@@ -48,6 +50,7 @@ class PostAnswer(models.Model): | @@ -48,6 +50,7 @@ class PostAnswer(models.Model): | ||
48 | class Meta: | 50 | class Meta: |
49 | verbose_name = _('Post Answer') | 51 | verbose_name = _('Post Answer') |
50 | verbose_name_plural = _('Post Answers') | 52 | verbose_name_plural = _('Post Answers') |
53 | + app_label = 'forum' | ||
51 | 54 | ||
52 | def __str__(self): | 55 | def __str__(self): |
53 | return ''.join([self.user.name, " / ", self.answer_date]) | 56 | return ''.join([self.user.name, " / ", self.answer_date]) |
54 | \ No newline at end of file | 57 | \ No newline at end of file |