问题
Can Django do SELECT ... FROM ONLY ... queries without using .raw()?
I need it to omit archived tables in my queries to Postgres.
回答1:
I just did a hg grep on 'ONLY' in django/db of the development version. No hits, so no.
What's the bigger picture? Why not use .raw()?
来源:https://stackoverflow.com/questions/7733437/django-select-from-only-table