diff --git a/fet2020/gallery/models.py b/fet2020/gallery/models.py index a734be72..8dba0dde 100644 --- a/fet2020/gallery/models.py +++ b/fet2020/gallery/models.py @@ -15,10 +15,7 @@ class Album(models.Model): verbose_name="Thumbnail", max_length=200, null=True, blank=True ) - photographer = models.ForeignKey( - User, on_delete=models.SET_NULL, null=True, blank=True - ) - + photographer = models.CharField(verbose_name="Fotograph(en)", max_length=200, null=True, blank=True) description = models.TextField(null=True, blank=True) STATUS = ( diff --git a/fet2020/templates/gallery/album.html b/fet2020/templates/gallery/album.html index cde48eaa..d70b4afd 100644 --- a/fet2020/templates/gallery/album.html +++ b/fet2020/templates/gallery/album.html @@ -9,11 +9,9 @@
- Zurück -
-
- -
+
+ Zurück +
{% if request.user.is_authenticated %} {% if album.id %}
@@ -25,11 +23,14 @@
{% endif %} {% endif %} +
+
+
{{ album.title }}
{% if album.photographer %} - Fotograf: {{ album.photographer | capfirst }}
+ Fotograf(en): {{ album.photographer }}
{% endif %} {% if album.event_date %} Datum: {{ album.event_date }}