diff options
author | luxagraf <sng@luxagraf.net> | 2022-07-31 16:30:38 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2022-07-31 16:30:38 -0500 |
commit | 89c47fb92e084b19d9673a6c33cf6ce8cec0a45e (patch) | |
tree | 787e18648efddc651eaa25a18d2c919b8ecdb98e /app/posts | |
parent | b19655bf6e6855a75a73d24c2b8de315518f055d (diff) |
jrnl: removed issue str from abs url
Diffstat (limited to 'app/posts')
-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 |