Browse Source

ajustando script de migracao

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

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

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

Loading…
Cancel
Save