@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 #
    ###################
Add or modify group from group mapping entry
dataset/ETHPy150Open django/django/django/db/models/query.py/QuerySet.db--crossover with--dataset/ETHPy150Open byt3bl33d3r/pth-toolkit/lib/python2.7/site-packages/samba/upgrade.py/add_group_from_mapping_entry