1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 13:04:19 +00:00

corretta serializzazione di type

This commit is contained in:
stefanogoldoni 2021-05-02 23:01:10 +02:00
parent b713be87d5
commit b58ef760e3

View file

@ -19,6 +19,6 @@ class Condition(Base.Model):
def to_json(self): def to_json(self):
return { return {
"id": self.id, "id": self.id,
"type": self.type, "type": self.type.value,
"content": self.content, "content": self.content,
} }