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 | 17 | class Meta: |
18 | 18 | verbose_name = _('Forum') |
19 | 19 | verbose_name_plural = _('Foruns') |
20 | + app_label = 'forum' | |
20 | 21 | |
21 | 22 | def __str__(self): |
22 | 23 | return self.title |
... | ... | @@ -32,6 +33,7 @@ class Post(models.Model): |
32 | 33 | class Meta: |
33 | 34 | verbose_name = _('Post') |
34 | 35 | verbose_name_plural = _('Posts') |
36 | + app_label = 'forum' | |
35 | 37 | |
36 | 38 | def __str__(self): |
37 | 39 | return ''.join([self.user.name, " / ", self.post_date]) |
... | ... | @@ -48,6 +50,7 @@ class PostAnswer(models.Model): |
48 | 50 | class Meta: |
49 | 51 | verbose_name = _('Post Answer') |
50 | 52 | verbose_name_plural = _('Post Answers') |
53 | + app_label = 'forum' | |
51 | 54 | |
52 | 55 | def __str__(self): |
53 | 56 | return ''.join([self.user.name, " / ", self.answer_date]) |
54 | 57 | \ No newline at end of file | ... | ... |