mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-04 14:46:29 +08:00
BUG: Fix contains logic when override is not used.
The internal _data should be checked, not the __dict__
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ class BarData(object):
|
||||
if self._contains_override:
|
||||
return self._contains_override(name)
|
||||
else:
|
||||
return name in self.__dict__
|
||||
return name in self._data
|
||||
|
||||
def has_key(self, name):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user