diff --git a/trojstenid/schools/models.py b/trojstenid/schools/models.py index 66729ba..f36d864 100644 --- a/trojstenid/schools/models.py +++ b/trojstenid/schools/models.py @@ -56,7 +56,7 @@ def __str__(self) -> str: def to_dict(self) -> dict[str, Any]: return { "id": self.id, - "eduid": self.eduid, + "eduid": self.eduid if self.eduid is not None else -self.id, "name": self.name, "address": self.address, "types": [t.identifier for t in self.types.all()],