Skip to content

Instantly share code, notes, and snippets.

@hcarvalhoalves
Created November 28, 2012 00:57
Show Gist options
  • Save hcarvalhoalves/4158296 to your computer and use it in GitHub Desktop.
Save hcarvalhoalves/4158296 to your computer and use it in GitHub Desktop.
class NodeManager(models.Manager):
def get_query_set(self):
qs = super(NodeManager, self).get_query_set()
return qs.select_related('category', 'child_class')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment