def can_manage_foiproject(foiproject, request): return can_manage_object(foiproject, request)
def get_object(self, queryset=None): obj = super(AssignTeamView, self).get_object(queryset=queryset) if not can_manage_object(obj, self.request): raise Http404 return obj
def get_object(self, queryset=None): obj = super(AssignTeamView, self).get_object(queryset=queryset) if not can_manage_object(obj, self.request): raise Http404 return obj
def can_manage_foiproject(foiproject, request): return can_manage_object(foiproject, request)