Skip to content
Snippets Groups Projects
Commit 02f2cd40 authored by Christian Pointner's avatar Christian Pointner
Browse files

added image_enabled flag to show

parent 6c7e6bc1
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,7 @@ class Show(models.Model):
name = models.CharField(_("Name"), max_length=255)
slug = models.CharField(_("Slug"), max_length=255, unique=True)
image = models.ImageField(_("Image"), blank=True, null=True, upload_to='show_images')
image_enabled = models.BooleanField(_("show Image"), default=True )
short_description = models.CharField(_("Short description"), max_length=64)
description = tinymce_models.HTMLField(_("Description"))
email = models.EmailField(_("E-Mail"), blank=True, null=True)
......
......@@ -39,7 +39,7 @@
<div id="description">{{ show.description|safe }}</div>
{% if show.image %}
{% if show.image and show.image_enabled %}
<div id="image" style="float: right;"><img src="/program/static/{{ show.image }}" width="200" alt="image"></div>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment