diff options
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models.py | 4 | ||||
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py index 8fb18385b..e047e21cf 100644 --- a/archaeological_finds/models.py +++ b/archaeological_finds/models.py @@ -145,10 +145,6 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms): order = models.IntegerField(_(u"Order")) label = models.CharField(_(u"ID"), max_length=60) description = models.TextField(_(u"Description"), blank=True, null=True) - """ - image = models.ImageField(upload_to="finds/", blank=True, null=True) - thumbnail = models.ImageField(upload_to='finds/thumbs/', blank=True, - null=True)""" material_type = models.ForeignKey(MaterialType, verbose_name = _(u"Material type")) volume = models.FloatField(_(u"Volume (l)"), blank=True, null=True) diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 208447905..9111eb409 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -1,13 +1,13 @@ {% extends "ishtar/sheet.html" %} {% load i18n %} + {% block content %} <div class='tool'>{%trans "Export as:"%} <a href='{% url show-find item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-find item.pk "pdf" %}'>{%trans "PDF file"%}</a></div> <h3>{% trans "Find"%}</h3> {% if item.image %} -plouf -<img href='{{item.image.url}}' alt="{{image.label}}"/> +<a href='{{item.image.url}}' rel="prettyPhoto" title="{{item.label}}"><img src='{{item.thumbnail.url}}'/></a> {% endif%} <p><label>{%trans "Name"%}{% trans ":"%}</label> |