From 38c111ec8b259158c152472ea96d070da2d39386 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 10 Dec 2016 12:01:45 +0100 Subject: Fix get_types cache key (extra args where not evaluated) --- archaeological_finds/forms_treatments.py | 0 ishtar_common/models.py | 1 + 2 files changed, 1 insertion(+) create mode 100644 archaeological_finds/forms_treatments.py diff --git a/archaeological_finds/forms_treatments.py b/archaeological_finds/forms_treatments.py new file mode 100644 index 000000000..e69de29bb diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 69bb9b935..25fa73132 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -447,6 +447,7 @@ class GeneralType(Cached, models.Model): keys = ['__get_types'] keys += [u"{}".format(ex) for ex in exclude] + [ empty_first and 'empty_first' or ''] + [u"{}".format(default)] + keys += [u'{}-{}'.format(unicode(k), dct[k]) for k in dct] cache_key, value = get_cache(cls, keys) if value and not force: return value -- cgit v1.2.3