8000 chore: Merge back release/4.1.x by fsbraun · Pull Request #7899 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

chore: Merge back release/4.1.x #7899

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 63 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
2e31793
Merge pull request #7617 from fsbraun/develop-4
fsbraun Aug 7, 2023
318d417
Fix: modal.scss dark-mode compatibilitiy
fsbraun Aug 8, 2023
5232220
Add: Build all assets as part of the frontend test
fsbraun Aug 8, 2023
94cc9b0
fix: Better action feedback
fsbraun Aug 8, 2023
4c7939e
Merge pull request #7621 from fsbraun/fix/dart-sass
fsbraun Aug 8, 2023
4ab1f58
fix: Update _modal.scss
fsbraun Aug 8, 2023
fcc2f7a
fix: Remove publish/draft reference from grouper admin message
fsbraun Aug 8, 2023
e703659
Merge pull request #7622 from fsbraun/fix/grouper-message
fsbraun Aug 8, 2023
33fbdb1
fix ruff
fsbraun Aug 8, 2023
d79eddc
Add Django 4.2 support to release notes
fsbraun Aug 8, 2023
369f776
Fix transifex-pull-strings
fsbraun Aug 9, 2023
06ecf3a
fix: Update transifex source file (#7629)
fsbraun Aug 22, 2023
ac74c21
Fix: Open new plugin window in language of toolbar not of page (#7632)
fsbraun Aug 23, 2023
33f93d6
Fix: Broken page actions menu if CMS_PERMISSIONS is set
fsbraun Aug 24, 2023
d871d9f
Build: release 4.1.0rc4 (#7637)
fsbraun Aug 25, 2023
58ed512
fix: en locale in `release/4.1.x` (#7638)
fsbraun Aug 25, 2023
b3edda3
fix: en locale typo (#7639)
fsbraun Aug 25, 2023
121acf1
Merge branch 'develop-4' into release/4.1.x
fsbraun Aug 30, 2023
807a87b
fix: Remove `can_publish` permission from django CMS 4 core (#7635)
fsbraun Oct 16, 2023
8b323e7
Merge pull request #7718 from django-cms/develop-4
fsbraun Dec 11, 2023
5e9a71b
ci: Merge back 4.1.0.rc5 build into release/4.1.x (#7720)
fsbraun Dec 12, 2023
118f79f
Update setup.cfg
fsbraun Dec 12, 2023
3411b98
Remove py3.8 from setup.cfg
fsbraun Dec 12, 2023
737e86e
feat: add v4 docs to main branch (#7722)
fsbraun Dec 21, 2023
5c5359f
Update docs for frontend testing (#7726)
protoroto Dec 21, 2023
bb8a7ef
fix: Update make-release script to evaluate git diff-index exit codes
fsbraun Dec 22, 2023
b98b051
Update make-release to allow for empty messages commit
fsbraun Dec 22, 2023
e88032b
chore: Merge `release/build` into `release/4.1.x` (#7729)
fsbraun Dec 27, 2023
959200e
Apply suggestions from code review
fsbraun Dec 31, 2023
490dffa
fix: Incomplete command to create a virtual env in docs (#7735)
fsbraun Jan 4, 2024
cb0cff1
docs: Remove reference to rc5 from 01-install.rst
fsbraun Jan 4, 2024
01dc649
fix #7826
jrief Feb 28, 2024
6da9de8
Merge branch 'develop-4' of github.com:fsbraun/django-cms into develop-4
fsbraun Apr 7, 2024
ee2f469
Merge branch 'develop-4' of github.com:fsbraun/django-cms into develop-4
fsbraun Apr 18, 2024
1854ba4
Merge branch 'develop-4' of github.com:fsbraun/django-cms into develop-4
fsbraun Apr 19, 2024
6b78c89
Merge branch 'release/4.1.x' into develop-4
fsbraun Apr 19, 2024
566cbf4
Merge branch 'develop-4' of github.com:fsbraun/django-cms into develop-4
fsbraun Apr 19, 2024
513318c
Fix merge errors
fsbraun Apr 19, 2024
95e9afb
Merge branch 'django-cms:develop-4' into develop-4
fsbraun Apr 20, 2024
7f1ec98
Merge branch 'django-cms:develop-4' into develop-4
fsbraun Apr 23, 2024
6771f8b
Merge branch 'django-cms:develop-4' into develop-4
fsbraun Apr 23, 2024
f5409b8
Merge pull request #7886 from fsbraun/develop-4
fsbraun Apr 23, 2024
bb31ba9
feat: send post request if toolbar button has `cms-form-post-method` …
fsbraun Apr 24, 2024
358baf8
Fix eslint
fsbraun Apr 24, 2024
a999820
Merge pull request #7890 from fsbraun/fix/toolbar-post-button
fsbraun Apr 24, 2024
1d4f072
Merge branch 'django-cms:develop-4' into develop-4
fsbraun Apr 26, 2024
a4c6ccb
fix: structure board on the right for ltr
fsbraun Apr 26, 2024
4fd8210
Merge pull request #7891 from fsbraun/fix/rtl-bugs
fsbraun Apr 26, 2024
ccb2e8b
Fix: Placeholders must not block deletion of their source objects
fsbraun Apr 26, 2024
72459b0
Add some explanation
fsbraun Apr 26, 2024
fce9e6c
Merge pull request #7893 from fsbraun/fix/placeholder-deletion-bug
fsbraun Apr 26, 2024
27edafd
[4.1.1 release process] Building locales
Apr 26, 2024
50cbd71
[4.1.1 release process] Bumped version to 4.1.1
Apr 26, 2024
bf4177f
[4.1.1 release process] compilemessages
Apr 26, 2024
158f989
[4.1.1 release process] compiling new static files
Apr 26, 2024
2ff0855
[4.1.1 release process] updating latest docs
Apr 26, 2024
80fc1f0
Update CHANGELOG.rst
fsbraun Apr 27, 2024
a62d1e1
Update 4.1.1.rst
fsbraun Apr 27, 2024
1d82698
Update 4.1.1.rst
fsbraun Apr 27, 2024
245e23d
Update 4.1.1.rst
fsbraun Apr 27, 2024
6fb1416
Update CHANGELOG.rst
fsbraun Apr 30, 2024
fe795fb
Merge pull request #7894 from django-cms/release/build
fsbraun Apr 30, 2024
1050c4f
Merge branch 'develop-4' into release/4.1.x
fsbraun May 1, 2024
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
70 changes: 70 additions & 0 deletions CHANGELOG.rst
< F438 td id="diff-2c623f3c6a917be56c59d43279244996836262cb1e12d9d0786c9c49eef6b43cR1" data-line-number="1" class="blob-num blob-num-addition js-linkable-line-number js-blob-rnum">
Original file line number Diff line number Diff line change
@@ -1,3 +1,73 @@
4.1.1 (2024-04-30)
==================

Features:
---------
* send post request if toolbar button has `cms-form-post-method` class (bb31ba990) -- Fabian Braun
* Add RTL support to modal header and related components (#7863) (bef004550) -- Moe
* Add RTL support to toolbar (#7871) (92a1086de) -- Moe
* add versioned deprecation warnings (#7750) (545ea1f6d) -- Fabian Braun
* Added new contributor message based on django's own version (#7797) (311af6cf3) -- Mark Walker

Bug Fixes:
----------
* Placeholders must not block deletion of their source objects (ccb2e8b3b) -- Fabian Braun
* structure board on the right for ltr (a4c6ccb68) -- Fabian Braun
* CMS widgets need not load if they are read only (#7880) (fb30434e4) -- Fabian Braun
* some Django antipatterns (#7867) (c436cf45a) -- Jacob Rief
* Redirects to newly created object (#7864) (0b43a43c3) -- Fabian Braun
* `views.details` revealed existence of unpublished language (#7853) (fa7b89cee) -- Fabian Braun
* Render structure view in toolbar object's language (#7846) (d123d118d) -- Fabian Braun
* Add RTL support to pagetree (#7817) (21d6a6def) -- Moe
* 7828, try using uv as pip replacement (#7829) (08463c274) -- Vinit Kumar
* Efficient build menu for versioned and unversioned pages (#7807) (b0f59bb55) -- Fabian Braun
* Delete orphaned plugin management command for django CMS 4 (#7814) (3e635d3db) -- Fabian Braun
* render content in place `redirect_on_fallback` is False (#7781) (e264d0400) -- Moe
* solved issue #7818 (#7819) (087fa3ec7) -- Raffaella
* Port forward #7070 - faster DOM update after editing (#7787) (26b081a31) -- Fabian Braun
* return _handle_no_page when page is None (#7786) (ce8d5d557) -- Moe
* Redirect user to edit url after a successful page creation (#7772) (f290e3d09) -- Moe
* editing of apphooked CMS pages without apphook landing page (#7766) (cd6df846b) -- Philipp S. Sommer
* make messages readable in dark mode, let user close long messages (#7740) (68749cbb3) -- Fabian Braun
* Replace the VCS pip installs with release name in docs (#7755) (10e9b5327) -- sakhawy
* Incorrect commands to migrate database in docs (#7754) (082214be6) -- sakhawy
* Incomplete command to create a virtual env in docs (#7735) (490dffab1) -- Fabian Braun

Statistics:
-----------

This release includes 89 pull requests, and was created with the help of the following contributors (in alphabetical order):

* Aiden-RC (2 pull requests)
* Erdenebat Oyungerel (1 pull request)
* Fabian Braun (37 pull requests)
* Github Release Action (4 pull requests)
* Jacob Rief (4 pull requests)
* Mario Colombo (1 pull request)
* Mark Walker (9 pull requests)
* Miloš Nikić (1 pull request)
* Moe (6 pull requests)
* Philipp S. Sommer (1 pull request)
* Raffaella (1 pull request)
* Vinit Kumar (1 pull request)
* dependabot[bot] (0 pull request)
* sakhawy (2 pull requests)
* sparrow (1 pull request)

With the review help of the following contributors:

* Fabian Braun
* Github Release Action
* Jacob Rief
* Leonardo Cavallucci
* Mario Colombo
* Mark Walker
* Vinit Kumar
* dependabot[bot]
* nichoski

Thanks to all contributors for their efforts!

4.1.0 (2023-12-22)
==================

Expand Down
2 changes: 1 addition & 1 deletion cms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '4.1.0'
__version__ = '4.1.1'

default_app_config = 'cms.apps.CMSConfig'
12 changes: 0 additions & 12 deletions cms/admin/pageadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,6 @@ def delete_view(self, request, object_id, extra_context=None):
**get_deleted_objects_additional_kwargs
)

# `django.contrib.admin.utils.get_deleted_objects()` only returns the verbose_name of a model,
# we hence have to use that name in order to allow the deletion of objects otherwise prevented.
perms_needed.discard(Placeholder._meta.verbose_name)
perms_needed.discard(PageContent._meta.verbose_name)

if request.POST and not protected: # The user has confirmed the deletion.
if perms_needed:
raise PermissionDenied
Expand Down Expand Up @@ -1263,13 +1258,6 @@ def delete_view(self, request, object_id, extra_context=None):
list(perms_needed_url) + list(perms_needed_translation) + list(perms_needed_plugins)
)

# This is bad and I should feel bad.
if 'placeholder' in perms_needed:
perms_needed.remove('placeholder')

if 'page content' in perms_needed:
perms_needed.remove('page content')

if request.method == 'POST':
if perms_needed:
raise PermissionDenied
Expand Down
12 changes: 11 additions & 1 deletion cms/admin/placeholderadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,27 @@ class PlaceholderAdminMixin(metaclass=PlaceholderAdminMixinBase):
class PlaceholderAdmin(admin.ModelAdmin):

def has_add_permission(self, request):
# Placeholders are created by the system
return False

def has_change_permission(self, request, obj=None):
# Placeholders are not editable in the admin
return False

def has_delete_permission(self, request, obj=None):
return False
# Placeholders are deleted by cascading the deletion of their source object
# so we don't need to check for delete permissions here.
return True

def has_module_permission(self, request):
# Do not show in admin
return False

def delete_view(self, request, object_id, extra_context=None):
# Placeholder are deleted by cascading the deletion of their source object
# but the admin's delete view is not available for placeholders.
raise PermissionDenied

def get_urls(self):
"""
Register the plugin specific urls (add/edit/copy/remove/move)
Expand Down
Binary file modified cms/locale/ar/LC_MESSAGES/django.mo
Binary file not shown.
Loading
0