Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
get_image_full_url bug when image if not present.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekmo committed May 22, 2016
1 parent 8537f62 commit 395d37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aldryn_newsblog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def get_keywords(self):
return (self.meta_keywords if self.meta_keywords else self.get_tags())

def get_image_full_url(self):
return self.build_absolute_uri(self.featured_image.url)
return self.build_absolute_uri(self.featured_image.url) if self.featured_image else None

def save(self, *args, **kwargs):
# Update the search index
Expand Down

0 comments on commit 395d37f

Please sign in to comment.