8000 ci: Merge back release 3.11.4 into `develop` by fsbraun · Pull Request #7646 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

ci: Merge back release 3.11.4 into develop #7646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix ruff issues
  • Loading branch information
fsbraun committed Aug 9, 2023
commit e61a31b823c7e0fe523ee0066029ff0b155c4c0b
2 changes: 1 addition & 1 deletion cms/utils/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def check_i18n(output):
"'en_US'): '%s' provided" % lang[0])
if settings.SITE_ID == hash(settings.SITE_ID):
for site, items in get_cms_setting('LANGUAGES').items():
if type(site) == int:
if isinstance(site, int):
for lang in items:
if lang['code'].find('_') > -1:
section.warn("CMS_LANGUAGES entries must contain valid language codes, not locales (e.g.: "
Expand Down
2 changes: 1 addition & 1 deletion cms/utils/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def _recursive_escape(self, o, esc=conditional_escape):
return type(o)((esc(k), self._recursive_escape(v)) for (k, v) in o.items())
if isinstance(o, (list, tuple)):
return type(o)(self._recursive_escape(v) for v in o)
if type(o) is bool:
if isinstance(o, bool):
return o
try:
return type(o)(esc(o))
Expand Down
0