human
Here's a good function header given the following:
I wrote the below code

    @wraps(view_func)
    def inner_view(request, subproject=None, subproject_slug=None, *args, **kwargs):
        if ((subproject is None) and subproject_slug):
            try:
                subproject = Project.objects.get(slug=subproject_slug)
            except Project.DoesNotExist:
                try:
                    rel = ProjectRelationship.objects.get(parent=kwargs['project'], alias=subproject_slug)
                    subproject = rel.child
                except (ProjectRelationship.DoesNotExist, KeyError):
                    raise Http404
        return view_func(request, subproject=subproject, *args, **kwargs)
    return inner_view

What's a good function header?
assistant
#Here's a good function header.

def map_subproject_slug(view_func):