From 99a6f53245a9566c7200c727f5eefc568f8b983d Mon Sep 17 00:00:00 2001 From: Aiq0 <66842415+Aiq0@users.noreply.github.com> Date: Thu, 26 Feb 2026 22:28:35 +0100 Subject: [PATCH] fix: always return school `eduid` --- trojstenid/schools/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()],