Jquery Ajax Autocomplete

2014-01-14 Thread Ali Hayder
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.

Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread Ali Hayder
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,

Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread Ali Hayder
> > 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

Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread Ali Hayder
> > 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

I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-23 Thread Ali Hayder
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