( value, formatter )
return value
call a faker if value is None
    uses:

        {{ myint|or_fake:'randomInt' }}
call a faker if value is None
    uses:
call a faker if value is None uses :
def do_or_fake_filter( value, formatter ):
    """
    call a faker if value is None
    uses:

        {{ myint|or_fake:'randomInt' }}

    """
    if not value:
        value = Faker.getGenerator().format( formatter )
    return value
def do_or_fake_filter ( value , formatter ) : if not value : value = Faker . getGenerator ( ) . format ( formatter ) return value