Hi all, Django 2.0 has a new feature[1] which allows you to say "I expect no actual database queries in this piece of code". It is not designed to stop a specific queryset from spawning requests, so getting it to do exactly what's asked for in this thread may be a little involved, but if your goal is to prevent surprise queries, I think it is actually better than sealing a single queryset.
HTH, Shai [1] https://docs.djangoproject.com/en/2.0/topics/db/instrumentation/