diff --git a/GeoffreyApp/models.py b/GeoffreyApp/models.py index 9d72c59..067a98a 100644 --- a/GeoffreyApp/models.py +++ b/GeoffreyApp/models.py @@ -113,7 +113,7 @@ class Player(models.Model): return {"name": self.name, "mc_uuid": self.mc_uuid, "discord_uuid": self.discord_uuid, - "primary_location": self.primary_location.id + "primary_location": None if self.primary_location is None else self.primary_location.id } @property