Skip to content

Commit d528303

Browse files
committed
Merge branch 'dev' into release/2
2 parents e7ca63a + d5b6219 commit d528303

7 files changed

Lines changed: 54 additions & 3 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated by Django 4.1.10 on 2023-07-12 18:53
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
("coderedcms", "0037_coderedpage_related_classifier_term_and_more"),
9+
]
10+
11+
operations = [
12+
migrations.AlterField(
13+
model_name="classifier",
14+
name="slug",
15+
field=models.SlugField(
16+
allow_unicode=True,
17+
max_length=255,
18+
unique=True,
19+
verbose_name="Slug",
20+
),
21+
),
22+
]

coderedcms/models/snippet_models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ class Meta:
141141
allow_unicode=True,
142142
unique=True,
143143
verbose_name=_("Slug"),
144+
max_length=255,
144145
)
145146
name = models.CharField(
146147
max_length=255,

coderedcms/templates/coderedcms/blocks/film_strip_block.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
{% image panel.background_image original as image %}
1010
<div data-block="film-panel" class="col-auto col crx-filmstrip-panel {{panel.custom_css_class}}" {% if panel.custom_id %}id="{{panel.custom_id}}"{% endif %} style="
1111
{% if image %}background-image: url({{image.url}}); background-size: cover; background-position: center;{% endif %}
12-
{% if panel.background_color %}background-color: {{panel.background_color}}{% endif %}
13-
{% if panel.foreground_color %}color: {{panel.foreground_color}}{% endif %}
12+
{% if panel.background_color %}background-color: {{panel.background_color}};{% endif %}
13+
{% if panel.foreground_color %}color: {{panel.foreground_color}};{% endif %}
1414
">
1515
{% include_block panel.content %}
1616
</div>

coderedcms/templates/coderedcms/blocks/quote_block.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
{% if self.author %}
77
<figcaption class="blockquote-footer">{{self.author}}</figcaption>
88
{% endif %}
9+
</figure>
910
{% endblock %}

coderedcms/views.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
HttpResponsePermanentRedirect,
88
JsonResponse,
99
)
10-
from django.contrib.auth.decorators import login_required
10+
from django.contrib.auth.decorators import login_required, permission_required
1111
from django.contrib.contenttypes.models import ContentType
1212
from django.core.paginator import (
1313
Paginator,
@@ -278,6 +278,10 @@ def event_get_calendar_events(request):
278278

279279

280280
@login_required
281+
@permission_required(
282+
"wagtailadmin.access_admin",
283+
login_url="wagtailadmin_login",
284+
)
281285
def import_index(request):
282286
"""
283287
Landing page to replace wagtailimportexport.
@@ -286,6 +290,10 @@ def import_index(request):
286290

287291

288292
@login_required
293+
@permission_required(
294+
"wagtailadmin.access_admin",
295+
login_url="wagtailadmin_login",
296+
)
289297
def import_pages_from_csv_file(request):
290298
"""
291299
Overwrite of the `import_pages` view from wagtailimportexport. By default, the `import_pages`

docs/releases/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Supported Versions:
2525
.. toctree::
2626
:maxdepth: 1
2727

28+
v2.1.3
2829
v2.1.2
2930
v2.1.1
3031
v2.1.0

docs/releases/v2.1.3.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
v2.1.3 release notes
2+
====================
3+
4+
Bug fixes:
5+
6+
* Fix HTML syntax error in film strip.
7+
8+
* Fix HTML syntax error in quote blocks.
9+
10+
* Fix error creating Classifiers when the name is over 50 characters.
11+
12+
* Require Wagtail admin permission for import views.
13+
14+
15+
Thank you!
16+
----------
17+
18+
Thanks to everyone who contributed to `2.1.3 on GitHub <https://github.com/coderedcorp/coderedcms/milestone/48?closed=1>`_.

0 commit comments

Comments
 (0)