adds resource content queryset to detail view