summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-11-17 17:16:48 -0500
committerluxagraf <sng@luxagraf.net>2023-11-17 17:16:48 -0500
commitc6b6bdf136497a863d6170467340e3f096ed64cc (patch)
tree820eafa686093338fc12db1ac96e6ec53934a59e
parenta477033630bd2e561d6613ad1816c558c10b5621 (diff)
gtd: fixed a template title bug
-rw-r--r--app/gtd/models.py2
-rw-r--r--app/gtd/templates/gtd/note_list.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/app/gtd/models.py b/app/gtd/models.py
index 28649c6..1ca0d6e 100644
--- a/app/gtd/models.py
+++ b/app/gtd/models.py
@@ -103,10 +103,12 @@ class GTDNote(models.Model):
ACTION = 0
REMINDER = 1
REFERENCE = 2
+ SOMEDAY = 3
NOTE_TYPE = [
(ACTION, 'Action'),
(REMINDER, 'Reminder'),
(REFERENCE, 'Reference'),
+ (SOMEDAY, 'Someday'),
]
note_type = models.SmallIntegerField(choices=NOTE_TYPE, default=ACTION)
reminder = models.BigIntegerField(help_text="In days", null=True, blank=True)
diff --git a/app/gtd/templates/gtd/note_list.html b/app/gtd/templates/gtd/note_list.html
index 1e5179e..5457443 100644
--- a/app/gtd/templates/gtd/note_list.html
+++ b/app/gtd/templates/gtd/note_list.html
@@ -10,7 +10,7 @@
</ul>
</div>
<div class="note-list">{% for object in object_list %}<article>
- <h2>{{object.title}}{{object.title}}<span class="note-edit"><a href="{%url 'gtd:note-edit' object.pk%}">edit</a></span></h2>
+ <h2>{{object.title}}<span class="note-edit"><a href="{%url 'gtd:note-edit' object.pk%}">edit</a></span></h2>
<p>{{object.body_markdown}}</p>
<p class="small">For: <a href="/post/{{object.post.pk}}/notes">{{object.post}}</a></p>
<p class="small">Status: <a href="/post/{{object.post.pk}}/notes">{{object.get_status_display}}</a></p>