Correctly get tenant from request in views.