@login_required
@view
def display_person_edit_name(request, name_edit_mode):
 data = get_personal_data(request.user.get_profile())
 data['name_edit_mode'] = name_edit_mode
 data['editable'] = True
 return (request, 'profile/main.html', data)

@ login_required @ view def display_person_edit_name ( request , name_edit_mode ) : data = get_personal_data ( request . user . get_profile ( ) ) data [ 'name_edit_mode' ] = name_edit_mode data [ 'editable' ] = True return ( request , 'profile/main.html' , data )
show a little edit form for first name and last name .