diff options
Diffstat (limited to 'app/posts/models.py')
-rw-r--r-- | app/posts/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/posts/models.py b/app/posts/models.py index 9697f27..2cf17b7 100644 --- a/app/posts/models.py +++ b/app/posts/models.py @@ -41,7 +41,7 @@ def get_upload_path(self, filename): class PostType(models.IntegerChoices): RANGE = 0, ('range') REVIEW = 1, ('review') - ESSAY = 2, ('essay') + NOTE = 2, ('note') SRC = 3, ('src') JRNL = 4, ('jrnl') FIELD_NOTE = 5, ('field note') @@ -104,8 +104,8 @@ class Post(models.Model): return self.title def get_absolute_url(self): - if self.post_type == PostType.ESSAY: - return reverse('essays:detail', kwargs={"slug": self.slug}) + if self.post_type == PostType.NOTE: + return reverse('notes:detail', kwargs={"slug": self.slug}) if self.post_type == PostType.RANGE: m = NewsletterMailing.objects.get(post__id=self.pk) return reverse('range:range-detail', kwargs={"issue": m.get_issue_str(), "slug": self.slug}) |