diff --git a/apps/establishment/models.py b/apps/establishment/models.py index 7f20c529..e4b59ebe 100644 --- a/apps/establishment/models.py +++ b/apps/establishment/models.py @@ -764,7 +764,7 @@ class Establishment(GalleryMixin, ProjectBaseMixin, URLImageMixin, """ Return Country id of establishment location """ - return self.address.country_id + return self.address.country_id if hasattr(self.address, 'country_id') else None @property def establishment_id(self):