first working version
This commit is contained in:
5
models/models_helpers.py
Normal file
5
models/models_helpers.py
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
class DeclarativeBaseToDict:
|
||||
def as_dict(self) -> dict:
|
||||
return {i: self.__dict__[i] for i in self.__dict__ if i[0] != '_'}
|
||||
Reference in New Issue
Block a user