Commit e9bd1c56 by Don Mitchell

Fix SessionKeyValueStore.has to use the correct indexing value when looking up data

parent 97c2e9ec
...@@ -25,4 +25,4 @@ class SessionKeyValueStore(KeyValueStore): ...@@ -25,4 +25,4 @@ class SessionKeyValueStore(KeyValueStore):
del self._session[tuple(key)] del self._session[tuple(key)]
def has(self, key): def has(self, key):
return key in self._descriptor_model_data or key in self._session return key.field_name in self._descriptor_model_data or tuple(key) in self._session
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment