Permalink
Browse files

Fix fixer :-/

  • Loading branch information...
1 parent f5b1bbc commit 3802783d5f7749fdc5933123883d3d6669755a9c @omab omab committed Feb 15, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 social_auth/backends/__init__.py
@@ -138,7 +138,8 @@ def get_random_username():
name, idx = username, 2
while True:
try:
- User.objects.get(username=fixer(name))
+ name = fixer(name)
+ User.objects.get(username=name)
name = username + str(idx)
idx += 1
except User.DoesNotExist:

0 comments on commit 3802783

Please sign in to comment.