'Return project determined by url kwarg'

def get_project(self):

    if (self.project_url_field not in self.kwargs):
        return None
    return get_object_or_404(Project.objects.for_admin_user(user=self.request.user), slug=self.kwargs[self.project_url_field])
