Fix error in attributehandler

This commit is contained in:
Griatch 2016-09-03 19:11:46 +02:00
parent fd351a2809
commit e0268d6cb3

View file

@ -269,7 +269,7 @@ class AttributeHandler(object):
# for this category before
catkey = "-%s" % category
if _TYPECLASS_AGGRESSIVE_CACHE and catkey in self._catcache:
return [attr for key, attr in self._cache if key.endswith(catkey)]
return [attr for key, attr in self._cache.items() if key.endswith(catkey)]
else:
# we have to query to make this category up-date in the cache
query = {"%s__id" % self._model : self._objid,