def getConnection(self):

        klass = self.entities.keys()
        if not klass:
            raise AttributeError('No class found from entities. Did you add entities to the Populator ?')
        klass = list(klass)[0]

        return klass.objects._db
use the first connection available
dataset/ETHPy150Open joke2k/django-faker/django_faker/populator.py/Populator.getConnection