@login_required<EOL>def edit_profile(request):
form, handled = _handle_profile(request, "<STR_LIT>")<EOL>if handled and not form.errors:<EOL><INDENT>messages.success(<EOL>request,<EOL>"<STR_LIT>",<EOL>)<EOL>return redirect("<STR_LIT>")<EOL><DEDENT>data = {<EOL>"<STR_LIT>": form,<EOL>}<EOL>return render(request, "<STR_LIT>", data)<EOL>
View for editing an attendee's profile

    The user must be logged in to edit their profile.

    Returns:
        redirect or render:
            In the case of a ``POST`` request, it'll redirect to ``dashboard``,
            or otherwise, it will render ``registrasion/profile_form.html``
            with data::

                {
                    "form": form,  # Instance of ATTENDEE_PROFILE_FORM.
                }