Fixed or hack for django 1.7. Taken from Zinnia issue 342 https://github.com/Fantomas42/django-blog-zinnia/issues/342