Пример #1
0
 def from_json(data, partial=False):
     schema = CategorySchema()
     result = schema.load(data, partial=partial)
     return result
Пример #2
0
 def from_json(data, partial=False):
     schema = CategorySchema()
     result = schema.load(data, partial=partial)
     return result
Пример #3
0
 def to_json(self, exclude=None):
     schema = CategorySchema()
     result = schema.dump(self)
     return result
Пример #4
0
 def to_json(self, exclude=None):
     schema = CategorySchema()
     result = schema.dump(self)
     return result