I guess was what i was looing for, i wrote a subquery for getting a user's
vote and now it works.

Thanks.

Cheers,
Mitja


James Bennett wrote:
> 
> 
> On 8/31/07, sect2k <[EMAIL PROTECTED]> wrote:
>> One way of doing it would be to use template tags, but that would amount
>> to
>> redundant SQL queries for each story. I guess another way of doing it
>> would
>> be to write custom SQL using JOIN.
>>
>> What I would like to know is what is the django way of doing this?
> 
> http://www.djangoproject.com/documentation/db-api/#extra-select-none-where-none-params-none-tables-none
> 
> -- 
> "Bureaucrat Conrad, you are technically correct -- the best kind of
> correct."
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Releated-data-from-models-tf4359235.html#a12424130
Sent from the django-users mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to