Now also works with older versions of Django