@treeio_login_required
def account_view(request, response_format='html'):
 profile = request.user.profile
 try:
  contacts = profile.contact_set.exclude(trash=True)
 except:
  contacts = []
 return render_to_response('account/account_view', {'profile': profile, 'contacts': contacts}, context_instance=RequestContext(request), response_format=response_format)

@ treeio_login_required def account_view ( request , response_format = 'html' ) : profile = request . user . profile try : contacts = profile . contact_set . exclude ( trash = True ) except : contacts = [ ] return render_to_response ( 'account/account_view' , { 'profile' : profile , 'contacts' : contacts } , context_instance = RequestContext ( request ) , response_format = response_format )
single transaction view page .