Make djsopnet compatible to Django 1.6