merci
je me pose des questions avec un test sur le filtrage
pourquoi dans ma fonction units renvoie bien
[<UniteProperty2: Al2O3>, <UniteProperty2: CN56>] c'est ok
et units2 renvoie [] ?? ce devrait etre pareil ?
voila le filtre
if 'q' in request.GET:
q = float(request.GET['q'])
val1 = request.GET['boite2']
val2 = request.GET['boite2']
units = UniteProperty2.objects.filter(Q(val_champ__icontains =
val1) & Q(val1__gt=q-2, val1__lte=q))
units2= UniteProperty2.objects.filter(Q(val_champ__icontains =
val2) & Q(val2__gt=q-2, val2__lte=q))
val1 et val2 sont pourtant identiques ??
_______________________________________________
django mailing list
[email protected]
http://lists.afpy.org/mailman/listinfo/django