From a965ab913c054796aa945eb564ec49f9c3a35195 Mon Sep 17 00:00:00 2001 From: bleizi Date: Thu, 13 Jul 2023 19:43:47 +0200 Subject: [PATCH] anonymize more data --- management/commands/anonymize_data.py | 35 ++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/management/commands/anonymize_data.py b/management/commands/anonymize_data.py index 3c4b973..e79c5b5 100644 --- a/management/commands/anonymize_data.py +++ b/management/commands/anonymize_data.py @@ -1,4 +1,4 @@ -# Copyright (C) 2018-2021 by BDE ENS Paris-Saclay +# Copyright (C) 2018-2023 by BDE ENS Paris-Saclay # SPDX-License-Identifier: GPL-3.0-or-later from django.core.management.base import BaseCommand @@ -30,4 +30,37 @@ class Command(BaseCommand): "email = 'anonymous@example.com';") cur.execute("UPDATE member_club SET " "email = 'anonymous@example.com';") + cur.execute("UPDATE activity_guest SET " + "first_name = 'Anne', " + "last_name = 'Onyme';") + cur.execute("UPDATE treasury_invoice SET " + "name = 'Anne Onyme', " + "object = 'Rends nous riches', " + "description = 'Donne nous plein de sous', " + "address = '4 avenue des Sciences, 91190 GIF-SUR-YVETTE';") + cur.execute("UPDATE treasury_product SET " + "designation = 'un truc inutile';") + cur.execute("UPDATE note_specialtransaction SET " + "bank = 'le matelas', " + "first_name = 'Anne', " + "last_name = 'Onyme';") + cur.execute("UPDATE wei_weiregistration SET " + "birth_date = '1998-01-08', " + "emergency_contact_name = 'Anne Onyme', " + "emergency_contact_phone = '0123456789', " + "gender = 'nonbinary', " + "health_issues = 'Tout va bien';") + cur.execute("UPDATE logs_changelog SET " + "ip = '138.231.175.203', " + "data = 'new data', " + "previous = 'old data';") + cur.execute("UPDATE mailer_messagelog SET" + "log_message = 'log message', " + "message_data = 'message data';") + cur.execute("UPDATE mailer_dontsendentry SET" + "to_address = 'anonymous@example.com';") + cur.execute("UPDATE oauth2_provider_application SET" + "name = 'external app', " + "redirect_urls = 'http://external.app', " + "client_secret = 'abcdefghijklmnopqrstuvwxyz';") cur.close()