class Book(models.Model):
    active = models.BooleanField()
author = models.ForeignKey(Author, related_name='books')
title = models.TextField()
objects = ActiveOnly()
default_manager = ActiveOnly()
inactive_objects = models.Manager()
Django override behavior of double underscore relationship lookup in queries