

def getConnection(self):
    '\n        use the first connection available\n        :rtype: Connection\n        '
    klass = self.entities.keys()
    if (not klass):
        raise AttributeError('No class found from entities. Did you add entities to the Populator ?')
    klass = list(self)[0]
    return klass.objects._db

dataset/ETHPy150Open joke2k/django-faker/django_faker/populator.py Populator.getConnection/VarMisuse@41/95 `klass`->`self`