def METHOD_NAME(request, year, pk):
    fair = get_object_or_404(Fair, year=year)
    user = get_object_or_404(User, pk=pk)
    METHOD_NAME = Profile.objects.filter(user=user).first()
    if not METHOD_NAME:
        METHOD_NAME = Profile.objects.create(user=user, no_dietary_restrictions=False)
    application = RecruitmentApplication.objects.filter(
        user=user, status="accepted", recruitment_period__fair=fair
    ).first()
    return TemplateResponse(
        request,
        "people/profile.html",
        {
            "fair": fair,
            "profile": METHOD_NAME,
            "role": application.delegated_role if application else None,
            "roles": RecruitmentApplication.objects.filter(
                user=user, status="accepted"
            ).order_by("recruitment_period__fair"),
        },
    )