Skip to content

Commit

Permalink
Merge pull request #37 from maximkulkin/fix-object-resolved-field-cac…
Browse files Browse the repository at this point in the history
…hing

Fix caching of resolved Object fields
  • Loading branch information
maximkulkin authored Nov 27, 2016
2 parents 3552130 + f0abc2a commit 84ddfc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lollipop/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,10 +1052,10 @@ def __init__(self, bases_or_fields=None, fields=None, constructor=None,

@property
def fields(self):
if not hasattr(self, '__fields'):
self.__fields = self._resolve_fields(self.bases, self._fields,
self._only, self._exclude)
return self.__fields
if not hasattr(self, '_resolved_fields'):
self._resolved_fields = self._resolve_fields(self.bases, self._fields,
self._only, self._exclude)
return self._resolved_fields

default_field_type = inheritable_property('default_field_type')
constructor = inheritable_property('constructor')
Expand Down

0 comments on commit 84ddfc3

Please sign in to comment.