Commit 30dae143 authored by Michal Čihař's avatar Michal Čihař

Filter subscription by language as well

parent 28add690
...@@ -24,17 +24,17 @@ class ProfileManager(models.Manager): ...@@ -24,17 +24,17 @@ class ProfileManager(models.Manager):
''' '''
Manager providing shortcuts for subscription queries. Manager providing shortcuts for subscription queries.
''' '''
def subscribed_any_translation(self, project): def subscribed_any_translation(self, project, language):
return self.filter(subscribe_any_translation = True, subscriptions = project) return self.filter(subscribe_any_translation = True, subscriptions = project, languages = language)
def subscribed_new_string(self, project): def subscribed_new_string(self, project, language):
return self.filter(subscribe_new_string = True, subscriptions = project) return self.filter(subscribe_new_string = True, subscriptions = project, languages = language)
def subscribed_new_suggestion(self, project): def subscribed_new_suggestion(self, project, language):
return self.filter(subscribe_new_suggestion = True, subscriptions = project) return self.filter(subscribe_new_suggestion = True, subscriptions = project, languages = language)
def subscribed_new_contributor(self, project): def subscribed_new_contributor(self, project, language):
return self.filter(subscribe_new_contributor = True, subscriptions = project) return self.filter(subscribe_new_contributor = True, subscriptions = project, languages = language)
class Profile(models.Model): class Profile(models.Model):
''' '''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment