diff options
author | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-07-08 17:52:55 +0530 |
---|---|---|
committer | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-07-08 17:52:55 +0530 |
commit | 90da3f8ba6f480b0b422dd8a950270fec8c9fe4b (patch) | |
tree | a3b2a3c39188b2708a87018d672fd995cee56aca /gnowsys-ndf/gnowsys_ndf | |
parent | 3755224448fd5f2ecedb88bc49649e578f4bc880 (diff) | |
download | gnowsys-90da3f8ba6f480b0b422dd8a950270fec8c9fe4b.tar.gz |
Not showing None if no content
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf')
4 files changed, 4 insertions, 4 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/course.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/course.html index 43a5da3..bed3a68 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/course.html +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/course.html @@ -21,7 +21,7 @@ {{course_gst.name}} {% endif%} </h2> - {{course_gst.content|safe}} + {{course_gst.content|default_if_none:""|safe}} </a> {% if user.is_authenticated %} diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/ebook.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/ebook.html index 44cd105..4b969ba 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/ebook.html +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/ebook.html @@ -15,7 +15,7 @@ {% endif%} </h2> </a> - {{ebook_gst.content|safe}} + {{ebook_gst.content|default_if_none:""|safe}} {% endblock %} diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/file.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/file.html index ba8b5be..3cf5c35 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/file.html +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/file.html @@ -53,7 +53,7 @@ {{app_gst.name}} {% endif%} </h2> - {{app_gst.content|safe}} + {{app_gst.content|default_if_none:""|safe}} </a> {% endblock %} diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme.html index 0f0d237..7fa7240 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme.html +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme.html @@ -373,7 +373,7 @@ {% endif%} </h3> </a> - {{theme_GST.content|safe}} + {{theme_GST.content|default_if_none:""|safe}} {% endblock %} {% block related_content %} |