diff options
author | luxagraf <sng@luxagraf.net> | 2024-05-13 09:20:19 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-05-13 09:20:19 -0500 |
commit | 9b1758b3496d7674a2147fc8b9f8084974311c87 (patch) | |
tree | d83559c325529319615f47701761172b9343d2d9 | |
parent | 0031ea3b8feea6612a9d37212f350c623ff3b902 (diff) |
gtd: added fix to show update freq
-rw-r--r-- | app/gtd/templates/gtd/wiredpost_table.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/gtd/templates/gtd/wiredpost_table.html b/app/gtd/templates/gtd/wiredpost_table.html index 15f62b7..ee56aa1 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">{% 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-update_frequency">{% if object.update_schedule.all.exists %}{% 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%} |