X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2856ae6ae36213ca7997366e0c7790e3c855e62f..68dbe44bdbc497a82064c6a47eeaecbb34463f64:/apps/catalogue/utils.py?ds=sidebyside diff --git a/apps/catalogue/utils.py b/apps/catalogue/utils.py index b023f1a2f..edc287f98 100644 --- a/apps/catalogue/utils.py +++ b/apps/catalogue/utils.py @@ -317,7 +317,7 @@ This can sometimes occupy lots of memory, so trim it here a bit. def related_tag_name(tag_info, language=None): return tag_info.get("name_%s" % (language or get_language()), - tag_info.get("name_%s" % settings.LANGUAGE_CODE)) + tag_info.get("name_%s" % settings.LANGUAGE_CODE, "")) def delete_from_cache_by_language(cache, key_template):