summaryrefslogtreecommitdiff
path: root/app/gtd/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-01-27 15:16:24 -0600
committerluxagraf <sng@luxagraf.net>2024-01-27 15:16:24 -0600
commit3562e295581d733039df0b72da3c993139cd5949 (patch)
tree1b4117324c95e3349f042a47b7f722340f898755 /app/gtd/models.py
parente6a696797ecacd705251b00f2a4863b1237889aa (diff)
gtd: sorted project detail view by note type
Diffstat (limited to 'app/gtd/models.py')
-rw-r--r--app/gtd/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/gtd/models.py b/app/gtd/models.py
index 457083f..2ea18ab 100644
--- a/app/gtd/models.py
+++ b/app/gtd/models.py
@@ -134,6 +134,9 @@ class GTDNote(models.Model):
def __str__(self):
return self.title
+ def get_note_type(self):
+ return self.get_note_type_display()
+
def save(self, *args, **kwargs):
self.body_html = markdown_to_html(self.body_markdown)
super(GTDNote, self).save(*args, **kwargs)