summaryrefslogtreecommitdiff
path: root/app/posts/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-02-29 19:31:11 -0600
committerluxagraf <sng@luxagraf.net>2024-02-29 19:31:11 -0600
commita08bda7e08de6f510748fa094fb55bbbdb673c12 (patch)
tree5cb463ef2cb2710455fd9b25de32577a0c5a140a /app/posts/models.py
parentb5db26426d58b6394c8a2b15aacabd3c9e883807 (diff)
range: added craft urls and views
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 cf7212b..2ce7d96 100644
--- a/app/posts/models.py
+++ b/app/posts/models.py
@@ -140,6 +140,8 @@ class Post(models.Model):
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.HOWTO:
+ return reverse('craft:craft-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: