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
|
# Generated by Django 4.0.6 on 2022-07-13 13:55
|
||||||
|
|
||||||
|
import django.db.models.deletion
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="block">
|
<div class="block">
|
||||||
{% for block in blocks %}
|
{% for block in blocks %}
|
||||||
{% if block.title is not None %}
|
{% if block.title is not None %}
|
||||||
<h1 class="title">{{ block.title }}</h1>
|
<h1 class="title">{{ block.title }}</h1>
|
||||||
|
@ -41,18 +41,18 @@
|
||||||
{% if block.image2 is not None %}
|
{% if block.image2 is not None %}
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
{{ block.image2 }}
|
<img src="{% static block.image2 %}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if block.image3 is not None %}
|
{% if block.image3 is not None %}
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
{{ block.image3 }}
|
<img src="{% static block.image3 %}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue