- transforms bugfixes

This commit is contained in:
Wim Pomp
2023-10-12 14:55:37 +02:00
parent 96ab3174d7
commit 7797f38a59
5 changed files with 18 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ def lazy_property(function, field, *arg_fields):
def lazy(self):
if self.__dict__.get(field) is None:
self.__dict__[field] = function(*[getattr(self, arg_field) for arg_field in arg_fields])
self.__fields_set__.add(field)
self.model_fields_set.add(field)
return self.__dict__[field]
return property(lazy)