From 1cc41aae49f4a88f4e776d1d01f04134fd27ccd2 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 30 Jan 2021 14:34:14 -0500 Subject: lttr: added exif data to image page --- app/lttr/templates/lttr/range_detail.html | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/lttr/templates/lttr/range_detail.html b/app/lttr/templates/lttr/range_detail.html index bf729ad..d62f0e4 100644 --- a/app/lttr/templates/lttr/range_detail.html +++ b/app/lttr/templates/lttr/range_detail.html @@ -76,8 +76,11 @@ srcset="{{image.get_srcset}}" src="{{image.get_src}}" alt="{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%}"> - {%endwith%} - + +
+ {{image.exif_model}} {{image.exif_lens}} +
+ {%endwith%}

{{object.title|smartypants|safe}}

@@ -173,3 +176,13 @@ {% endblock %} {% block js %}{% comment %} {% endcomment%}{% endblock%} + + + exif_aperture = models.CharField(max_length=50, blank=True, null=True) + exif_make = models.CharField(max_length=50, blank=True, null=True) + exif_model = models.CharField(max_length=50, blank=True, null=True) + exif_exposure = models.CharField(max_length=50, blank=True, null=True) + exif_iso = models.CharField(max_length=50, blank=True, null=True) + exif_focal_length = models.CharField(max_length=50, blank=True, null=True) + exif_lens = models.CharField(max_length=50, blank=True, null=True) + exif_date = models.DateTimeField(blank=True, null=True) -- cgit v1.2.3-70-g09d2