Skip to content

Commit

Permalink
Merge branch 'master' of github.com:joke2k/django-faker
Browse files Browse the repository at this point in the history
  • Loading branch information
joke2k committed Sep 26, 2015
2 parents 757f2ab + 5c66449 commit 345e3ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions django_faker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
Django-faker uses python-faker to generate test data for Django models and templates.
"""
from django.conf import settings

__version__ = '0.2'


__version__ = '0.2.1'

class Faker(object):

Expand All @@ -29,6 +30,7 @@ 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
Expand Down

0 comments on commit 345e3ee

Please sign in to comment.