fix tags in posts
This commit is contained in:
@@ -249,6 +249,10 @@ class Post(models.Model):
|
||||
def three_tag_names(self):
|
||||
return self.tags.names()[:3]
|
||||
|
||||
@property
|
||||
def tag_names(self):
|
||||
return [t for t in self.tags.names()]
|
||||
|
||||
@property
|
||||
def imageurl(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user