@property
    def db(self):
        if self._for_write:
            return self._db or router.db_for_write(self.model, **self._hints)
        return self._db or router.db_for_read(self.model, **self._hints)

    ###################
    # PRIVATE METHODS #
    ###################
Return the database that will be used if this query is executed now
dataset/ETHPy150Open django/django/django/db/models/query.py/QuerySet.db