Skip to content

Instantly share code, notes, and snippets.

@hcarvalhoalves
Created November 28, 2012 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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