summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-01-27 07:21:24 -0600
committerluxagraf <sng@luxagraf.net>2024-01-27 07:21:24 -0600
commite6a696797ecacd705251b00f2a4863b1237889aa (patch)
tree19bde9824ab2cc2d083f4cd4b53aa000245ccc4f /app
parent521cacd081fa93507f7ad0f6df383f8a3b502502 (diff)
gtd: now displays months when needed
Diffstat (limited to 'app')
-rw-r--r--app/gtd/models.py3
-rw-r--r--app/gtd/templates/gtd/wiredpost_table.html2
2 files changed, 3 insertions, 2 deletions
diff --git a/app/gtd/models.py b/app/gtd/models.py
index 3ad2931..457083f 100644
--- a/app/gtd/models.py
+++ b/app/gtd/models.py
@@ -106,6 +106,7 @@ class NoteType(models.IntegerChoices):
return num
return None
+
class GTDNote(models.Model):
title = models.CharField(max_length=200)
url = models.CharField(max_length=400, blank=True, null=True)
@@ -164,7 +165,7 @@ class WiredUpdate(models.Model):
date = models.DateField(blank=True, null=True)
class Meta:
- ordering = ('-date',)
+ ordering = ('date',)
def __str__(self):
return self.name
diff --git a/app/gtd/templates/gtd/wiredpost_table.html b/app/gtd/templates/gtd/wiredpost_table.html
index a65ce9c..15f62b7 100644
--- a/app/gtd/templates/gtd/wiredpost_table.html
+++ b/app/gtd/templates/gtd/wiredpost_table.html
@@ -65,7 +65,7 @@ Date last pub
<td class="field-date_last_pub nowrap">{{object.category.name}}</td>
<td class="field-date_last_pub nowrap">{{object.date_last_pub}}</td>
<td class="field-post_type"><span class="hide">{{object.post_type}}</span>{{object.get_post_type_display}}</td>
- <td class="field-update_frequency">{{object.update_frequency}}</td>
+ <td class="field-update_frequency">{% if object.update_schedule %}{% for obj in object.update_schedule.all%}{{obj}}{% if forloop.last%}{%else%}, {%endif%}{%endfor%}{%else%}{{object.update_frequency}}{% endif %}</td>
<td class="field-needs_update">{% if object.needs_update %}
<span class="hide">1</span><img src="/static/admin/img/icon-yes.svg" alt="True">{%else%}
<span class="hide">0</span><img src="/static/admin/img/icon-no.svg" alt="False">{%endif%}