def home(request): from briefcase import core # core.sockets.testFunction() print "request home" types = module.getTypes() user_document_list = sorted(list(request.user.allowed_docs.all()) + list(request.user.owner.all()), key=lambda doc: doc.modified_date, reverse=True) user_view_list = request.user.view_only_docs.all() return render(request, "accounts/user_profile.html", {'current_user': request.user, 'user_document_list': user_document_list, 'user_view_list': user_view_list, "types":types})
def home(request): types = module.getTypes() user_document_list = sorted(list(request.user.allowed_docs.all()) + list(request.user.owner.all()), key=lambda doc: doc.modified_date, reverse=True) user_view_list = request.user.view_only_docs.all() return render(request, "accounts/user_profile.html", {'current_user': request.user, 'user_document_list': user_document_list, 'user_view_list': user_view_list, "types":types})
def home(request): types = module.getTypes() user_document_list = sorted(list(request.user.allowed_docs.all()) + list(request.user.owner.all()), key=lambda doc: doc.modified_date, reverse=True) user_view_list = request.user.view_only_docs.all() return render(request, "accounts/user_profile.html", {'current_user': request.user, 'user_document_list': user_document_list, 'user_view_list': user_view_list, "types":types})