V
V
Valery Semenov2012-11-04 12:25:37
Django
Valery Semenov, 2012-11-04 12:25:37

Django orm. How to use table aliases in extra?

there is a request. briefly gist:

objects.extra(
  tables=[table1, table2,table2],
  where=[
    'table1.id =table2.id',
    'table1.id2 =table2.id',
])


how to add a table twice through extra , but with different aliases, so that a query such as described above does not confuse django?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Semenov, 2012-11-09
@Ravall

I think not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question