From f2b936a725472a5c6c5f85ead5e1a5bcb08596cc Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@bioforsk.no>
Date: Fri, 9 Jan 2015 11:26:31 +0100
Subject: [PATCH] Bugfix

---
 information/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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