diff options
Diffstat (limited to 'app/posts/models.py')
-rw-r--r-- | app/posts/models.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/posts/models.py b/app/posts/models.py index 4616ad5..781e8fb 100644 --- a/app/posts/models.py +++ b/app/posts/models.py @@ -111,10 +111,6 @@ class Post(models.Model): return reverse('fieldnote:detail', kwargs={"year": self.pub_date.year, "month": self.pub_date.strftime("%m"), "slug": self.slug}) if self.post_type == PostType.JRNL: return reverse('jrnl:detail', kwargs={"year": self.pub_date.year, "month": self.pub_date.strftime("%m"), "slug": self.slug}) - if self.post_type == PostType.RANGE: - return reverse('range:range-detail', kwargs={"issue": self.get_issue_str(), "slug": self.slug}) - if self.post_type == PostType.FRIENDS: - return reverse('friends:friends-detail', kwargs={"issue": self.get_issue_str(), "slug": self.slug}) def comment_period_open(self): return self.enable_comments and datetime.datetime.today() - datetime.timedelta(30) <= self.pub_date |