summaryrefslogtreecommitdiff
path: root/app/posts/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/models.py')
-rw-r--r--app/posts/models.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/posts/models.py b/app/posts/models.py
index 5829fe9..838e269 100644
--- a/app/posts/models.py
+++ b/app/posts/models.py
@@ -135,12 +135,14 @@ class Post(models.Model):
@property
def longitude(self):
'''Get the site's longitude.'''
- return self.point.x
+ if self.point:
+ return self.point.x
@property
def latitude(self):
'''Get the site's latitude.'''
- return self.point.y
+ if self.point:
+ return self.point.y
@property
def sitemap_priority(self):