diff options
-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%} |