Fix additional images in ContentBlock models
This commit is contained in:
parent
c52c3e1924
commit
3ff8cd6166
|
@ -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):
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
<div class="block">
|
||||
<div class="block">
|
||||
{% for block in blocks %}
|
||||
{% if block.title is not None %}
|
||||
<h1 class="title">{{ block.title }}</h1>
|
||||
|
@ -41,18 +41,18 @@
|
|||
{% if block.image2 is not None %}
|
||||
<div class="column">
|
||||
<div class="box">
|
||||
{{ block.image2 }}
|
||||
<img src="{% static block.image2 %}">
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if block.image3 is not None %}
|
||||
<div class="column">
|
||||
<div class="box">
|
||||
{{ block.image3 }}
|
||||
<img src="{% static block.image3 %}">
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue