1. Daniel Greenfeld
  2. transifex

Commits

Dimitris Glezos  committed c81ce5c

Removed more rule=5 unnecessary code.

  • Participants
  • Parent commits ccf6148
  • Branches default

Comments (0)

Files changed (1)

File transifex/releases/models.py

View file
             if isinstance(language, str):
                 language = Language.objects.by_code_or_alias(language)
             t = Translation.objects.filter(resource__releases=self,
-                language=language, rule=5).order_by('-last_update')
+                language=language).order_by('-last_update')
         else:
-            t = Translation.objects.filter(resource__releases=self,
-                rule=5).order_by('-last_update')
+            t = Translation.objects.filter(resource__releases=self).order_by('-last_update')
         if t:
             return t[0]
         return None