fix country_id
This commit is contained in:
parent
b12253fb6b
commit
24c352aeac
|
|
@ -764,7 +764,7 @@ class Establishment(GalleryMixin, ProjectBaseMixin, URLImageMixin,
|
||||||
"""
|
"""
|
||||||
Return Country id of establishment location
|
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
|
@property
|
||||||
def establishment_id(self):
|
def establishment_id(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user