diff options
-rw-r--r-- | chimere/models.py | 3 | ||||
-rw-r--r-- | chimere/templates/chimere/detail.html | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/chimere/models.py b/chimere/models.py index e77a7f5..37e4013 100644 --- a/chimere/models.py +++ b/chimere/models.py @@ -1694,6 +1694,9 @@ class Property(models.Model): return "" return unicode(self.value) + def label(self): + return unicode(self) + class Meta: verbose_name = _(u"Property") diff --git a/chimere/templates/chimere/detail.html b/chimere/templates/chimere/detail.html index 4772d37..e3a2166 100644 --- a/chimere/templates/chimere/detail.html +++ b/chimere/templates/chimere/detail.html @@ -20,7 +20,7 @@ <p class='description'>{{ marker.description|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}</p> {% endif %} {% for property in marker.getProperties %} - <p class='{{property.propertymodel.getNamedId}}'>{{ property.value|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}</p> + <p class='{{property.propertymodel.getNamedId}}'>{{ property.label|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}</p> {% endfor %} {% if marker.origin %}<p class='detail_source'><strong>{% trans "Source:" %}</strong> <span>{{marker.origin}}</span></p>{% endif %} {% if marker.license %}<p class='detail_license'><strong>{% trans "License:" %}</strong> <span>{{marker.license}}</span></p>{% endif %} |