Beispiel #1
0
def FiltreActiv(request):
    job=Job.objects.all()
    if request.POST['judet-h']=="active":
        job=job.filter(Judet=request.POST['judet'])
    if request.POST['localitate-h']=="active":
        job=job.filter(Localitate=request.POST['localitate'])
    if request.POST['varsta-h']=="active":
        job=job.filter(Varsta__range=(request.POST['varsta-min'],request.POST['varsta-max']))
    if request.POST['recompensa-h']=="active":
        job=job.filter(Recompensa__range=(request.POST['recompensa-min'],request.POST['recompensa-max']))

    return json_response(job)
Beispiel #2
0
def ScoateRSS(request):
    job=Job.objects.all().order_by('-id')[:5]
    return json_response(job)
Beispiel #3
0
def ScoateJobs(request):
    job=Job.objects.filter(Judet=request.POST['Judet'])
    return json_response(job)
Beispiel #4
0
def ScoateChat(request):
    job=Job.objects.filter(id=request.POST['id'])
    return json_response(job)
Beispiel #5
0
def FiltreInactiv(request):
    job=Job.objects.all()
    return json_response(job)