Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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