ManyToOne : cannot form a proper query :(

2009-03-03 Thread [CPR]-AL.exe
for example, i have this models: (like here: http://www.djangoproject.com/documentation/models/many_to_one/) from django.db import models class Reporter(models.Model): first_name = models.CharField(max_le

Re: ManyToOne : cannot form a proper query :(

2009-03-03 Thread Alex Gaynor
On Tue, Mar 3, 2009 at 11:13 AM, [CPR]-AL.exe wrote: > > for example, i have this models: > (like here: http://www.djangoproject.com/documentation/models/many_to_one/ > ) > > > from django.db import models >

Re: ManyToOne : cannot form a proper query :(

2009-03-03 Thread [CPR]-AL.exe
Ooops, mean "How", not "Who" ... srry... --~--~-~--~~~---~--~~ 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 em

Re: ManyToOne : cannot form a proper query :(

2009-03-03 Thread [CPR]-AL.exe
Mean, "two reporters", of course --~--~-~--~~~---~--~~ 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

Re: ManyToOne : cannot form a proper query :(

2009-03-04 Thread [CPR]-AL.exe
Thanks, but i've already read that and there's no answer for my question. In SQL this would be some query with nested joins.. but i don't know how to make this query in django.. On 3 мар, 19:17, Alex Gaynor wrote: > On Tue, Mar 3, 2009 at 11:13 AM, [CPR]-AL.exe wrote: > > > for example, i have

Re: ManyToOne : cannot form a proper query :(

2009-03-05 Thread [CPR]-AL.exe
So, it seems, that there is no way to do what i want? On 3 мар, 19:17, Alex Gaynor wrote: > On Tue, Mar 3, 2009 at 11:13 AM, [CPR]-AL.exe wrote: > > > for example, i have this models: > > (like here:http://www.djangoproject.com/documentation/models/many_to_one/ > > ) > > > -

Re: ManyToOne : cannot form a proper query :(

2009-03-05 Thread creecode
You can always perform raw SQL queries < http://docs.djangoproject.com/en/dev/topics/db/sql/ > if needed. On Mar 5, 4:25 am, "[CPR]-AL.exe" wrote: > So, it seems, that there is no way to do what i want? --~--~-~--~~~---~--~~ You received this message because you

Re: ManyToOne : cannot form a proper query :(

2009-03-09 Thread [CPR]-AL.exe
Thanks, but i thought that there's some django-way to do such a thing... is there a way i can add raw SQL query to Q object? That will (perhaps) solve my code design problem On 6 мар, 01:06, creecode wrote: > You can always perform raw SQL queries >

Re: ManyToOne : cannot form a proper query :(

2009-03-09 Thread [CPR]-AL.exe
Oh, nevermind, i figured out how to make nested joins only with q objects! On 9 мар, 17:26, "[CPR]-AL.exe" wrote: > Thanks, but i thought that there's some django-way to do such a > thing... is there a way i can add raw SQL query to Q object? That will > (perhaps) solve my code design problem >