Skip to content

Commit 4151e55

Browse files
authored
Merge branch 'django-cms:master' into master
2 parents 8754e88 + e5f72b9 commit 4151e55

File tree

19 files changed

+22
-11
lines changed

19 files changed

+22
-11
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ ci:
99

1010
repos:
1111
- repo: https://github.com/asottile/pyupgrade
12-
rev: v3.15.0
12+
rev: v3.15.2
1313
hooks:
1414
- id: pyupgrade
1515
args: ["--py37-plus"]
1616
- repo: https://github.com/adamchainz/django-upgrade
17-
rev: "1.15.0"
17+
rev: "1.16.0"
1818
hooks:
1919
- id: django-upgrade
2020
args: [--target-version, "2.2"]

djangocms_frontend/contrib/icon/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.utils.translation import gettext as _
1+
from django.utils.translation import gettext_lazy as _
22

33
from djangocms_frontend.models import FrontendUIItem
44

djangocms_frontend/contrib/listgroup/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.utils.translation import gettext as _
1+
from django.utils.translation import gettext_lazy as _
22

33
from ...models import FrontendUIItem
44

djangocms_frontend/contrib/media/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.utils.translation import gettext as _
1+
from django.utils.translation import gettext_lazy as _
22

33
from djangocms_frontend.models import FrontendUIItem
44

djangocms_frontend/contrib/tabs/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.utils.translation import gettext as _
1+
from django.utils.translation import gettext_lazy as _
22

33
from ...models import FrontendUIItem
44

djangocms_frontend/contrib/utilities/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.utils.translation import gettext as _
1+
from django.utils.translation import gettext_lazy as _
22

33
from ...models import FrontendUIItem
44

djangocms_frontend/models.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from django.db import models
55
from django.utils.html import conditional_escape, mark_safe
66
from django.utils.translation import gettext
7+
from django.utils.translation import gettext_lazy as _
78

89
from djangocms_frontend.fields import TagTypeField
910
from djangocms_frontend.settings import FRAMEWORK_PLUGIN_INFO
@@ -43,7 +44,7 @@ class AbstractFrontendUIItem(CMSPlugin):
4344

4445
class Meta:
4546
abstract = True
46-
verbose_name = gettext("UI item")
47+
verbose_name = _("UI item")
4748

4849
ui_item = models.CharField(max_length=30)
4950
tag_type = TagTypeField(blank=True)
@@ -141,4 +142,4 @@ class FrontendUIItem(AbstractFrontendUIItem):
141142
142143
"""
143144
class Meta:
144-
verbose_name = gettext("UI item")
145+
verbose_name = _("UI item")

djangocms_frontend/templates/djangocms_frontend.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<meta property="og:url" content="{{ request.build_absolute_uri|urlencode:"&?" }}"/>
1616
{% endblock canonical_url %}
1717
{% block fb_meta %}{% endblock fb_meta %}
18-
<title>{% block title %}{% page_attribute "page_title" %}{% endblock %}</title>
18+
<title>{% block title %}{{ request.current_page.get_page_title|striptags }}{% endblock %}</title>
1919
{% block base_css %}{% endblock %}
2020
{% endspaceless %}{% render_block 'css' %}{% spaceless %}
2121
{% block page_head %}{% endblock %}

tests/requirements/dj32_cms310.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
Django>=3.2,<3.3
44
django-cms>=3.10, <3.11
5+
djangocms-text-ckeditor

tests/requirements/dj32_cms38.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
Django>=3.2,<3.3
44
django-cms>=3.8,<3.9
55
django-treebeard<4.5
6+
djangocms-text-ckeditor

0 commit comments

Comments
 (0)