I looked for a simple solution to this recently and I couldn't find one. It would be great if implicit SQL queries that occur as a result of missing out either select_related() or prefetch_related() would generate a console warning.
I think this should be the default behaviour given that most beginning Django developers fall into this trap.