Commit 7b17b6e33cf47429b0197a4499c4f7a99d0e1fd4
1 parent
e1400074
Exists in
master
and in
5 other branches
fixed forum models app-label error
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
courses/templates/course/view.html
forum/models.py
... | ... | @@ -16,6 +16,7 @@ class Forum(Activity): |
16 | 16 | class Meta: |
17 | 17 | verbose_name = _('Forum') |
18 | 18 | verbose_name_plural = _('Foruns') |
19 | + app_label ='forum' | |
19 | 20 | |
20 | 21 | def __str__(self): |
21 | 22 | return self.name |
... | ... | @@ -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, " / ", str(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, " / ", str(self.answer_date)]) |
54 | 57 | \ No newline at end of file | ... | ... |