8000 Fix: Regression: Turning a cached property into a property in a subcl… · django-cms/django-cms@93f6fc5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 93f6fc5

Browse files
authored
Fix: Regression: Turning a cached property into a property in a subclass leads to side-effects (#7971)
1 parent d0a25c0 commit 93f6fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cms/toolbar/toolbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def object_is_editable(self, obj=None):
410410
return True
411411
return False
412412

413-
@property
413+
@cached_property
414414
def edit_mode_active(self):
415415
"""``True`` if editing mode is active。"""
416416
# Cannot be cached since it changes depending on the object.

0 commit comments

Comments
 (0)
0