Skip to content

Commit

Permalink
Added "dump" method to FieldSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Apr 15, 2020
1 parent d17e226 commit eb51204
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions labthings/server/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def serialize(self, value):

return self.field.serialize("value", obj)

def dump(self, value):
return self.serialize(value)

def jsonify(self, value):
"""Serialize a value to JSON
Expand Down

0 comments on commit eb51204

Please sign in to comment.