From d31ed50877e1680df3468e74451eb5128583a8c4 Mon Sep 17 00:00:00 2001 From: Ignacio Tula Date: Mon, 25 Nov 2024 05:55:11 +0000 Subject: [PATCH] Fix Serializa --- models/vehiculo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/vehiculo.py b/models/vehiculo.py index c542d01..9f3259c 100644 --- a/models/vehiculo.py +++ b/models/vehiculo.py @@ -19,7 +19,7 @@ def serialize(self): return { 'id': self.id, 'modelo': self.modelo.serialize() if self.modelo else None, - 'operador': self.operador if self.operador else None, + 'operador': self.operador.serialize() if self.operador else None, 'matricula': self.matricula, 'id_traccar': self.id_traccar, 'estado': self.estado,