diff options
author | luxagraf <sng@luxagraf.net> | 2022-12-29 19:16:22 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2022-12-29 19:16:22 -0600 |
commit | 171e38c61daced0b97081a226bc2beb215730509 (patch) | |
tree | 4d053e7a9abaab02ca44788c2a3e8f1f1e0843ba /app/posts/models.py | |
parent | b6613deaa9c18887c442a6275290c1e8c25a5f1f (diff) |
posts: changed essays to notes. less pretentious.
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}) |