Commit 887fbe1c authored by Ahmad Anvari's avatar Ahmad Anvari

Change methods of base model class

parent 8baea8f3
...@@ -14,8 +14,14 @@ class Model(ABC): ...@@ -14,8 +14,14 @@ class Model(ABC):
def store(self): def store(self):
pass pass
@staticmethod
@abstractmethod
def get_collection():
pass
@staticmethod
@abstractmethod @abstractmethod
def get_collection(self): def dict_to_object(dictionary):
pass pass
@abstractmethod @abstractmethod
......
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