Skip to content

Commit

Permalink
Merge pull request #30 from ar45/master
Browse files Browse the repository at this point in the history
Do not import django at top level in __init__.py
  • Loading branch information
Brobin committed Jan 27, 2016
2 parents 5b7be28 + ced5ef8 commit 95339f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_seed/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

from django.conf import settings
import random


Expand All @@ -22,6 +21,7 @@ def __init__(self):

@staticmethod
def codename(locale=None):
from django.conf import settings
locale = locale or getattr(settings,'LANGUAGE_CODE', None)
codename = locale or 'default'
return codename
Expand Down

0 comments on commit 95339f7

Please sign in to comment.