def chinhphu_list(request,template="newsweb/chinhphu.html"): data1, data2 = functions.Query('chinhphu') context = { 'data': data1, 'count': data2[0].get('count(0)'), } return render(request, template, context)
def anvilgroup_list(request,template="newsweb/anvilgroup.html"): data1, data2 = functions.Query('anvilgroup') context = { 'data': data1, 'count': data2[0].get('count(0)'), } return render(request, template, context)
def grada_list(request,template="newsweb/grada.html"): data1, data2 = functions.Query('grada') context = { 'data': data1, 'count': data2[0].get('count(0)'), } return render(request, template, context)
def osac_list(request,template="newsweb/osac.html"): # data = osac.objects.all().values() data1, data2 = functions.Query('osac') context = { 'data': data1, 'count': data2[0].get('count(0)'), } return render(request, template,context)
def mondaq_list(request,template="newsweb/mondaq.html"): data1, data2 = functions.Query('mondaq') username = request.user is_vip_type = functions.QueryVipType(username) print(is_vip_type) context = { 'data': data1, 'count': data2[0].get('count(0)'), # 'is_vip_type':is_vip_type[0].get('is_vip_type'), } return render(request, template,context)