Removed bug in Attribute recaching. Resolves #700.
This commit is contained in:
parent
2085d728a4
commit
ab50becfed
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ class AttributeHandler(object):
|
||||||
"attribute__db_attrtype" : self._attrtype}
|
"attribute__db_attrtype" : self._attrtype}
|
||||||
attrs = [conn.attribute for conn in getattr(self.obj, self._m2m_fieldname).through.objects.filter(**query)]
|
attrs = [conn.attribute for conn in getattr(self.obj, self._m2m_fieldname).through.objects.filter(**query)]
|
||||||
self._cache = dict(("%s-%s" % (to_str(attr.db_key).lower(),
|
self._cache = dict(("%s-%s" % (to_str(attr.db_key).lower(),
|
||||||
attr.db_category.lower() if conn.attribute.db_category else None),
|
attr.db_category.lower() if attr.db_category else None),
|
||||||
attr) for attr in attrs)
|
attr) for attr in attrs)
|
||||||
|
|
||||||
def has(self, key, category=None):
|
def has(self, key, category=None):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue