def comp(request):
form = ItemForm()
if request.method=="POST":
form = ItemForm(request.POST, request.FILES)
if form.is_valid():
if item.price >= old.price and item.pub_date <= old.pub_date
item = form.save(commit=False)
item.seller =
Hi,
I am trying to make a view function to get the posted values and
make some comparison (if x.value >= y.value)..
where x is the model that I got it's values from the post
and y is the other model .
so if anyone know how to do that I would be grateful :)
regards..
2 matches
Mail list logo