Remove select_related on middleware