Skip to content

Commit

Permalink
fix appypod version
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Jun 20, 2017
1 parent 3da09a6 commit 17c12f0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mapentity/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ def get_internal_user():
username = app_settings['INTERNAL_USER']
User = get_user_model()

internal_user = User.objects.get_or_create(username=username,
defaults={'password': settings.SECRET_KEY,
'is_active': True,
'is_staff': False})
internal_user, created = User.objects.get_or_create(
username=username,
defaults={'password': settings.SECRET_KEY,
'is_active': True,
'is_staff': False}
)

get_internal_user.instance = internal_user
return get_internal_user.instance
Expand Down

0 comments on commit 17c12f0

Please sign in to comment.