diff --git a/information/models.py b/information/models.py index 8c77940854a4c6006f95af61591760367f9cb648..2fdff20cd64aeed57098455a06960b111d85aea2 100644 --- a/information/models.py +++ b/information/models.py @@ -44,9 +44,7 @@ class InformationLocale(models.Model): ) except: # Use the first and best - return InformationLocale.objects.get( - information=Information.objects.get(pk=information_id) - )[0] + return InformationLocale.objects.get(information=Information.objects.filter(pk=information_id))[0] @staticmethod def get_heading_with_fallback(information_id, language_code=translation.get_language()):