Configured emmasocial.middleware.base.RestrictMiddleware in settings.py