Fixed compatibility issues for DjangoCMS >= 3