'Return project integration determined by url kwarg'

def get_integration(self):

    if (self.integration_url_field not in self.kwargs):
        return None
    return get_object_or_404(Integration, pk=self.kwargs[self.integration_url_field], project=self.get_project())
