(locale=None, providers=None)
return codename
codename = locale[-Provider]*
codename = locale[-Provider]*
codename = locale [ - Provider ] *
def getCodename(locale=None, providers=None):
        """
        codename = locale[-Provider]*
        """
        from django.conf import settings
        # language
        locale = locale or getattr(settings,'FAKER_LOCALE', getattr(settings,'LANGUAGE_CODE', None))
        # providers
        providers = providers or getattr(settings,'FAKER_PROVIDERS', None)

        codename = locale or 'default'

        if providers:
            codename += "-" + "-".join(sorted(providers))

        return codename
def getCodename ( locale = None , providers = None ) : from django . conf import settings # language locale = locale or getattr ( settings , 'FAKER_LOCALE' , getattr ( settings , 'LANGUAGE_CODE' , None ) ) # providers providers = providers or getattr ( settings , 'FAKER_PROVIDERS' , None ) codename = locale or 'default' if providers : codename += "-" + "-" . join ( sorted ( providers ) ) return codename