From 90da3f8ba6f480b0b422dd8a950270fec8c9fe4b Mon Sep 17 00:00:00 2001 From: Kedar Aitawdekar Date: Wed, 8 Jul 2015 17:52:55 +0530 Subject: Not showing None if no content --- gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/course.html | 2 +- gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/ebook.html | 2 +- gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/file.html | 2 +- gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'gnowsys-ndf/gnowsys_ndf') diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/course.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/course.html index 43a5da33..bed3a68c 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%} - {{course_gst.content|safe}} + {{course_gst.content|default_if_none:""|safe}} {% 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 44cd105b..4b969bae 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%} - {{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 ba8b5be3..3cf5c35a 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%} - {{app_gst.content|safe}} + {{app_gst.content|default_if_none:""|safe}} {% endblock %} diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme.html index 0f0d2375..7fa7240b 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%} - {{theme_GST.content|safe}} + {{theme_GST.content|default_if_none:""|safe}} {% endblock %} {% block related_content %} -- cgit v1.2.3-70-g09d2