Re: Chaining ManyToMany Filters Update

2007-03-12 Thread Gerard Whittey



Boris Smus wrote:
> On Mar 12, 6:56 am, Tim Chase <[EMAIL PROTECTED]>
> wrote:>
>> cs.filter(
>> Q(default_recipe__ingredients__ingredient__id=3) |
>> Q(default_recipe__ingredients__ingredient__id=1)
>> )
> 
> Just to clarify, I was trying to get AND functionality, as Konstantin
> suggested. I also tried with Q models, using the same expression as
> Tim gave, except s/|/,/. This gave the same erroneous result.
> 
> Thank you Tim for your custom SQL suggestion, I'll try to do something
> to that effect as a temporary solution. Something is still broken
> inside Django's m2m QuerySet filtering, however. Does anyone know the
> status of that?
> 
> 
> > 

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Template Loader for PHP files

2006-11-08 Thread Gerard Whittey

I saw the ticket for this Template Loader for PHP files
http://code.djangoproject.com/ticket/2440

I was wondering if someone could explain how you would integrate this 
into a django project. I read through the docs about templates but it 
was beyond me as I am just starting to learn python.

I just need to be able to test out if this php template loader will work 
  so I can convince the "bosses" we need to switch from php to this.

--~--~-~--~~~---~--~~
 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
-~--~~~~--~~--~--~---