Hello guys,
In my project's home page I have two forms for input two mobiles name for
comparison. So I need to integrate ajax autocomplete in those input forms.
I tried according to "Mike Hibbert" youtube tutorial. I am freaking out
about this issue. I have not enough time to do this.
Hi, Kirby
I found something. Is it will work?
MyModel.objects.filter(mobile_name='xyz').values(total)
Thanks for your support
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it,
>
> Hi Russ Magee
>
Thanks for your answer. I am confused a little bit.
I think "MyModel.objects.filter(mobile_name='xyz')" line of code is like
"SELECT * from table-xyz WHERE mobile_name=xyz"
but I was looking for the alternative of "SELECT total FROM tablexyz WHERE
mobile_name=xyz"
Thanks
>
> Hi Russ Magee
>
Thanks for your answer, but I am confused sort of. I want the total value
from the model.
"MyModel.objects.filter(mobile_name='xyz')" is this line of code can fetch
me the value of total field?
Thanks in advance
--
You received this message because you are subscribed to
HI,
My model like this
> *mobile_name = models.CharField("Mobile Name", max_length=50)*
* opinion = models.CharField('Comments', max_length=2000)*
* total = models.FloatField('Total Mark')*
the sql qery should like this "SELECT total FROM tablexyz WHERE
mobile_name=xyz"
Thanks in
5 matches
Mail list logo