(cls, locale=None, providers=None)
return cls.populators[codename]
uses:

            from django_faker import Faker
            pop = Faker.getPopulator()

            from myapp import models
            pop.addEntity(models.MyModel, 10)
            pop.addEntity(models.MyOtherModel, 10)
            pop.execute()

            pop = Faker.getPopulator('it_IT')

            pop.addEntity(models.MyModel, 10)
            pop.addEntity(models.MyOtherModel, 10)
            pop.execute()
def getPopulator(cls, locale=None, providers=None):
        """

        uses:

            from django_faker import Faker
            pop = Faker.getPopulator()

            from myapp import models
            pop.addEntity(models.MyModel, 10)
            pop.addEntity(models.MyOtherModel, 10)
            pop.execute()

            pop = Faker.getPopulator('it_IT')

            pop.addEntity(models.MyModel, 10)
            pop.addEntity(models.MyOtherModel, 10)
            pop.execute()

        """

        codename = cls.getCodename(locale, providers)

        if codename not in cls.populators:

            generator = cls.generators.get(codename,  None) or cls.getGenerator(codename=codename)

            from django_faker import populator

            cls.populators[codename] = populator.Populator( generator )

        return cls.populators[codename]
def getPopulator ( cls , locale = None , providers = None ) : codename = cls . getCodename ( locale , providers ) if codename not in cls . populators : generator = cls . generators . get ( codename , None ) or cls . getGenerator ( codename = codename ) from django_faker import populator cls . populators [ codename ] = populator . Populator ( generator ) return cls . populators [ codename ]