Browse Source

Usa email example.com no script de anonimização da base

pull/271/head
Marcio Mazza 9 years ago
parent
commit
719dd0bc3e
  1. 2
      scripts/anonimizador/anon.py

2
scripts/anonimizador/anon.py

@ -49,7 +49,7 @@ def stub(f, obj):
val = getattr(obj, f.name) val = getattr(obj, f.name)
if isinstance(f, CharField): if isinstance(f, CharField):
if 'mail' in f.name: if 'mail' in f.name:
return 'bla@bla.com' return 'bla@example.com'
elif 'nome' in f.name: elif 'nome' in f.name:
limite = f.max_length or 100000000 limite = f.max_length or 100000000
return random.choice(nomes)[:limite] return random.choice(nomes)[:limite]

Loading…
Cancel
Save