logo; RelatedPost sync with related object

This commit is contained in:
bkfox
2016-05-22 17:43:13 +02:00
parent a4f1b03bde
commit 4a9263cdd8
10 changed files with 212 additions and 18 deletions

View File

@ -307,6 +307,8 @@ class Sections:
"""
@property
def content (self):
if not self.object.image:
return ''
return '<img src="{}" class="post_image">'.format(
self.object.image.url
)