Closed jrief closed 7 months ago
@jrief Tests seem to fail.
@jrief Tests seem to fail.
unfortunately I haven't found the PageContent-extension object yet, which overrides method copy()
and accepting language
. Do I have to patch django-cms as well to fix those tests?
Looking at the BaseExtension
the signature of its copy method has included the language
parameter since 2015. This way page and page content extensions - both subclasses of BaseExtension
- can be handled similarly, even though the page content knows its language and the parameter is not needed. There might be third-party apps relying on this, so I am hesitant to patch the core.
Then let's add a deprecation note and leave it as it is.
Description
should be rewritten as
extension.copy(new_content)
because language is redundant in this context, aka.PageContent
already knows its language.master