Skip to content

Commit

Permalink
Add warning to CMSMenu class
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Jul 22, 2024
1 parent 3013c68 commit af579b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions djangocms_versioning/cms_menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ def _get_attrs_for_node(renderer, page_content):


class CMSMenu(Menu):
"""This is a legacy class used by django CMS 4.0 and django CMS 4.1.0 only. Its language
fallback mechanism does not comply with django CMS' core's. Also, it is by far slower
than django CMS core's. As of django CMS 4.1.1, this class is by default deactivated.
See https://discord.com/channels/800813886689247262/1204047551570120755 for more information."""
def get_nodes(self, request):
site = self.renderer.site
language = self.renderer.request_language
Expand Down

0 comments on commit af579b0

Please sign in to comment.