From e5c5971087dd7a1907d23f96fdd19b715a6d6325 Mon Sep 17 00:00:00 2001 From: Ricardo Dahis Date: Fri, 6 Dec 2024 08:50:35 +1100 Subject: [PATCH] fix: organization.area validation --- backend/apps/api/v1/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/api/v1/models.py b/backend/apps/api/v1/models.py index 77b68a32..46058299 100644 --- a/backend/apps/api/v1/models.py +++ b/backend/apps/api/v1/models.py @@ -476,7 +476,7 @@ class Meta: @property def full_slug(self): - if self.area.slug != "unknown": + if self.area: return f"{self.area.slug}_{self.slug}" return f"{self.slug}"