@ -3,6 +3,10 @@ from users.models import User, School, Adherent
fromdjango.db.modelsimportF,Value
fromdjango.db.models.functionsimportConcat
fromre2o.loginimporthashNT,makeSecret
importos,random,string
classCommand(BaseCommand):
help="Anonymize the data in the database in order to use them on critical servers (dev, personnal...). Every information will be overwritten using non-personnal informations. This script must follow any modification of the database."
@ -46,6 +50,21 @@ class Command(BaseCommand):
a.update(comment=Concat(Value('commentaire of '),'id'))
self.stdout.write(self.style.SUCCESS('done ...'))
self.stdout.write('Unification du mot de passe...')