Chain related relations and perform arbitrary lookups using Django REST Framework