def METHOD_NAME(request, conf):
    conf.user.is_active = True
    conf.user.save()
    conf.deactivate()
    try:
        person = Person.objects.get(email__iexact=conf.user.email)
    except Person.DoesNotExist:
        person = Person(email=conf.user.email, name=conf.user.profile.name)
    person.user = conf.user
    person.save()
    return render(request, 'patchwork/registration-confirm.html')