This seems confusing. Isn't this:
`if not user.is_authenticated() or user.userprofile.is_complete:
    return redirect('home')`