diff options
Diffstat (limited to 'askbot/models/post.py')
-rw-r--r-- | askbot/models/post.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/askbot/models/post.py b/askbot/models/post.py index 7ab0b524..47af2a42 100644 --- a/askbot/models/post.py +++ b/askbot/models/post.py @@ -377,7 +377,11 @@ class Post(models.Model): html = models.TextField(null=True)#html rendition of the latest revision text = models.TextField(null=True)#denormalized copy of latest revision - language_code = models.CharField(max_length=16, default=django_settings.LANGUAGE_CODE) + language_code = models.CharField( + choices=django_settings.LANGUAGES, + default=django_settings.LANGUAGE_CODE, + max_length=16, + ) # Denormalised data summary = models.TextField(null=True) @@ -1091,6 +1095,7 @@ class Post(models.Model): tag_names = self.get_tag_names() tag_selections = MarkedTag.objects.filter( tag__name__in = tag_names, + tag__language_code=get_language(), reason = tag_mark_reason ) subscribers = set( |