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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/posts/models.py b/app/posts/models.py
index 2726949..cf7212b 100644
--- a/app/posts/models.py
+++ b/app/posts/models.py
@@ -138,6 +138,8 @@ class Post(models.Model):
return reverse('essays:detail', kwargs={"slug": self.slug})
if self.post_type == PostType.SRC:
return reverse('src:detail', kwargs={"slug": self.slug})
+ if self.post_type == PostType.REVIEW:
+ return reverse('reviews:review-detail', kwargs={"slug": self.slug})
if self.post_type == PostType.FIELD_NOTE:
return reverse('fieldnote:detail', kwargs={"year": self.pub_date.year, "month": self.pub_date.strftime("%m"), "slug": self.slug})
if self.post_type == PostType.GUIDE: