the  :synopsis: is tied to the "module" and django.db.models is more than just query expressions. also `.. module:: django.db.models` is defined elsewhere. Maybe you just want `.. currentmodule::` instead.