From 3ff8cd61664846445e2e52cf558d2ded09c9c50e Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 21 Jul 2022 13:50:30 +0100 Subject: [PATCH] Fix additional images in ContentBlock models --- core/migrations/0003_contentblock.py | 2 +- core/templates/index.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/migrations/0003_contentblock.py b/core/migrations/0003_contentblock.py index c30ec38..ed80125 100644 --- a/core/migrations/0003_contentblock.py +++ b/core/migrations/0003_contentblock.py @@ -1,8 +1,8 @@ # Generated by Django 4.0.6 on 2022-07-13 13:55 +import django.db.models.deletion from django.conf import settings from django.db import migrations, models -import django.db.models.deletion class Migration(migrations.Migration): diff --git a/core/templates/index.html b/core/templates/index.html index 2c34759..f0c1333 100644 --- a/core/templates/index.html +++ b/core/templates/index.html @@ -2,7 +2,7 @@ {% load static %} {% block content %} -
+
{% for block in blocks %} {% if block.title is not None %}

{{ block.title }}

@@ -41,18 +41,18 @@ {% if block.image2 is not None %}
- {{ block.image2 }} +
{% endif %} {% if block.image3 is not None %}
- {{ block.image3 }} +
{% endif %}
{% endfor %} -
+ {% endblock %}