@treeio_login_required
def user_view(request, user_id, response_format='html'):
 user = get_object_or_404(User, pk=user_id)
 contact_id = Contact.objects.filter(related_user=user)[0].id
 return contact_view(request, contact_id, attribute='', response_format=response_format)

@ treeio_login_required def user_view ( request , user_id , response_format = 'html' ) : user = get_object_or_404 ( User , pk = user_id ) contact_id = Contact . objects . filter ( related_user = user ) [ 0 ] . id return contact_view ( request , contact_id , attribute = '' , response_format = response_format )
user view .