Add fix for django CMS 3.0-

Use exception to handle both django CMS 3.0 and 3.1