summaryrefslogtreecommitdiff
path: root/quoins/model/blog.py
diff options
context:
space:
mode:
Diffstat (limited to 'quoins/model/blog.py')
-rw-r--r--quoins/model/blog.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/quoins/model/blog.py b/quoins/model/blog.py
index ee99d83..fb1fa27 100644
--- a/quoins/model/blog.py
+++ b/quoins/model/blog.py
@@ -198,14 +198,16 @@ class BaseComment(object):
198 return self.author.display_name 198 return self.author.display_name
199 if self.name: 199 if self.name:
200 return self.name 200 return self.name
201 if self.url:
202 return self.url
201 return 'Anonymous' 203 return 'Anonymous'
202 author_name = property(get_author_name) 204 author_name = property(get_author_name)
203 205
204class Comment(BaseComment): 206class Comment(BaseComment):
205 pass 207 comment_type = 'comment'
206 208
207class LinkBack(BaseComment): 209class LinkBack(BaseComment):
208 pass 210 comment_type = 'linkback'
209 211
210mapper(Blog, blog_table, 212mapper(Blog, blog_table,
211 properties=dict(posts=relation(Post, 213 properties=dict(posts=relation(Post,