Browse Source

ajustando script de migracao

stable/1.0
Felipe Vieira 13 years ago
parent
commit
582ee76919
  1. 5
      sigi/apps/servidores/management/commands/migra.py

5
sigi/apps/servidores/management/commands/migra.py

@ -54,7 +54,10 @@ class Command(BaseCommand):
# procuro o usuario por email do interlegis
if email:
try: user = User.objects.get(email=email)
except User.DoesNotExist: pass
except User.DoesNotExist:
email = username + '@interlegis.leg.br'
try: user = User.objects.get(email=email)
except User.DoesNotExist: pass
if not user and username:
try: user = User.objects.get(username=username)

Loading…
Cancel
Save