Re: Join of any db table with Q.add_to_query

2008-11-10 Thread Malcolm Tredinnick
On Mon, 2008-11-03 at 03:02 -0800, Dima Dogadaylo wrote: > Before merging of queryset-refactor it was possible to join any table > with any ON clause to any queryset with help of Q.as_sql. It was "possible" for small values of possible that meant "extremely fragile and didn't work in a large

Join of any db table with Q.add_to_query

2008-11-03 Thread Dima Dogadaylo
Before merging of queryset-refactor it was possible to join any table with any ON clause to any queryset with help of Q.as_sql. For example, please see this one: http://www.djangosnippets.org/snippets/257/ Since Django 1.0 ORM looks like more complicated, Q.as_sql is disappeared (but still