(self, model, number, customFieldFormatters=None)
Add an order for the generation of $number records for $entity.

        :param model: mixed A Django Model classname, or a faker.orm.django.EntityPopulator instance
        :type model: Model
        :param number: int The number of entities to populate
        :type number: integer
        :param customFieldFormatters: optional dict with field as key and callable as value
        :type customFieldFormatters: dict or None
Add an order for the generation of $number records for $entity.
Add an order for the generation of $number records for $entity .
def addEntity(self, model, number, customFieldFormatters=None):
        """
        Add an order for the generation of $number records for $entity.

        :param model: mixed A Django Model classname, or a faker.orm.django.EntityPopulator instance
        :type model: Model
        :param number: int The number of entities to populate
        :type number: integer
        :param customFieldFormatters: optional dict with field as key and callable as value
        :type customFieldFormatters: dict or None
        """
        if not isinstance(model, ModelPopulator):
            model = ModelPopulator(model)

        model.fieldFormatters = model.guessFieldFormatters( self.generator )
        if customFieldFormatters:
            model.fieldFormatters.update(customFieldFormatters)

        klass = model.model
        self.entities[klass] = model
        self.quantities[klass] = number
        self.orders.append(klass)
def addEntity ( self , model , number , customFieldFormatters = None ) : if not isinstance ( model , ModelPopulator ) : model = ModelPopulator ( model ) model . fieldFormatters = model . guessFieldFormatters ( self . generator ) if customFieldFormatters : model . fieldFormatters . update ( customFieldFormatters ) klass = model . model self . entities [ klass ] = model self . quantities [ klass ] = number self . orders . append ( klass )