Add returning of parameters for get_from_clause()
Could it be possible to make the get_from_clause() in django.db.models.sql.compiler return params? It'd be useful in some cases to be able to "insert" parameters to the FROM (such as when you need to add an ON clause or other "extended" things)
For an example of this, you can check the "Simple Backend" for the django-fts (at google code), in where I need to "patch" the structures directly to achieve what I wanted (or perhaps there's a better way?)... it's right there in fts.backends.simple, in the _search() method... where I add extra joined tables to do the search (just after the tables already in the queryset). I'd appreciate any comments. :)
Change History
(2)
Resolution: |
→ invalid
|
Status: |
new → closed
|
Cc: |
German M. Bravo added
|
Easy pickings: |
unset
|
Severity: |
→ Normal
|
Type: |
→ Uncategorized
|
UI/UX: |
unset
|
I'm unclear why you can't use the normal query.join() mechanisms to achieve what you want to do. This gives you a great deal of control over the join type, join condition, etc.