# HG changeset patch # User Daniele Nicolodi # Date 1320401504 -3600 # Node ID 6b04cb2e92c9f4f9e1f065330e9987182a48629e # Parent d1f0cfc4da0f4d788c3bc4c05fbde9a0a6ba65f6 Show null fields as empty string in object view. diff -r d1f0cfc4da0f -r 6b04cb2e92c9 src/ltpdarepo/templates/obj.html --- a/src/ltpdarepo/templates/obj.html Fri Nov 04 11:11:42 2011 +0100 +++ b/src/ltpdarepo/templates/obj.html Fri Nov 04 11:11:44 2011 +0100 @@ -4,7 +4,7 @@

Database «{{ database.id }}» object «{{ obj.name }}»

{% for field in fields %} - + {% endfor %}
{{ field }}:{{ obj[field] }}
{{ field }}:{{ obj[field] is not none and obj[field] or '' }}
xml:download
binary:download