@login_required
@view
def importer(request, test_js=False):
 person = request.user.get_profile()
 data = get_personal_data(person)
 data['citation_form'] = mysite.profile.forms.ManuallyAddACitationForm(auto_id=False)
 data['test_js'] = (test_js or request.GET.get('test', None))
 return (request, 'profile/importer.html', data)

@ login_required @ view def importer ( request , test_js = False ) : person = request . user . get_profile ( ) data = get_personal_data ( person ) data [ 'citation_form' ] = mysite . profile . forms . ManuallyAddACitationForm ( auto_id = False ) data [ 'test_js' ] = ( test_js or request . GET . get ( 'test' , None ) ) return ( request , 'profile/importer.html' , data )
get the logged-in users profile .