def METHOD_NAME(self):
    network = NetworkFactory(address='192.168.1.0/24')
    with self.assertNumQueries(5):
        self.view.get_last_modified(
            Network.objects.filter(id__in=[network.id])
        )