8000 feat: Add `FrontendEditableAdminMixin` endpoint to plugins by fsbraun · Pull Request #8062 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

feat: Add FrontendEditableAdminMixin endpoint to plugins #8062

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 20 commits into from
Nov 7, 2024
Merged
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 test
  • Loading branch information
fsbraun committed Nov 5, 2024
commit 582856ee171aad8a3a8a33e3d9a655bab2f80a70
4 changes: 2 additions & 2 deletions cms/tests/test_templatetags.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,9 +703,9 @@
template = """{% load cms_tags %}{% render_model plugin "body" "body" %}"""
# The template html tags will render the object editable in the frontend
expectation = (
'<template class="cms-plugin cms-plugin-start cms-plugin-djangocms_text_ckeditor-text-body-1 cms-render-model"></template>'
f'<template class="cms-plugin cms-plugin-start cms-plugin-djangocms_text_ckeditor-text-body-{{ self.plugin_pk }} cms-render-model"></template>'

Check failure on line 706 in cms/tests/test_templatetags.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F541)

cms/tests/test_templatetags.py:706:13: F541 f-string without any placeholders
'&lt;b&gt;Test&lt;/b&gt;'
'<template class="cms-plugin cms-plugin-end cms-plugin-djangocms_text_ckeditor-text-body-1 cms-render-model"></template>'
f'<template class="cms-plugin cms-plugin-end cms-plugin-djangocms_text_ckeditor-text-body-{{ self.plugin_pk }} cms-render-model"></template>'

Check failure on line 708 in cms/tests/test_templatetags.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F541)

cms/tests/test_templatetags.py:708:13: F541 f-string without any placeholders
)

endpoint = get_object_edit_url(self.page.get_content_obj("en")) # view in edit mode
Expand Down
Loading
0