How to use mysql hints via orm


I want use mysql hints via orm like above, Thank a lot.


Unfortunately it’s not possible at the moment, without modifying the query yourself (ie outside of the ORM). There’s some work being done at the moment to add comments to queries, but those probably won’t work as you need them.

If you think it’d be a useful feature for Django, raising a feature-request might be the way to go: