X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/b4ededb44a47569b05671f08e95a2fe595732fd4..323a191d18137e4ba014a7577ab63556031ef773:/migdal/helpers.py?ds=inline diff --git a/migdal/helpers.py b/migdal/helpers.py index 11f8ddc..8a6513d 100644 --- a/migdal/helpers.py +++ b/migdal/helpers.py @@ -20,7 +20,7 @@ class EntryType(namedtuple('EntryType', 'db slug commentable on_main')): def field_getter(name): @property def getter(self): - val = getattr(self, "%s_%s" % (name, get_language())) + val = getattr(self, "%s_%s" % (name, get_language()), None) if not val: val = getattr(self, "%s_%s" % (name, settings.LANGUAGE_CODE)) return val