aboutsummaryrefslogtreecommitdiffstats
path: root/client/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <aleporia@gmail.com>2023-07-24 12:53:03 +0200
committerAndrea Lepori <aleporia@gmail.com>2023-07-24 12:53:03 +0200
commit411c4035784b0294794b8bb34dce974f799e0757 (patch)
treee50829cdf1dc27e4a2c6fca3ed54c071c36e58cc /client/views.py
parentadd doc table link (diff)
downloadscout-subs-411c4035784b0294794b8bb34dce974f799e0757.tar.gz
scout-subs-411c4035784b0294794b8bb34dce974f799e0757.zip
usercode with all personal data
Diffstat (limited to 'client/views.py')
-rw-r--r--client/views.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/views.py b/client/views.py
index d4e9709..79783f1 100644
--- a/client/views.py
+++ b/client/views.py
@@ -15,6 +15,16 @@ from datetime import datetime
import pytz
from random import randint
+def migration_usercode(void):
+ usercodes = UserCode.objects.all()
+ for uc in usercodes:
+ user = uc.user
+ uc.first_name = user.first_name
+ uc.last_name = user.last_name
+ uc.email = user.email
+ uc.branca = user.groups.all()[0]
+ uc.save()
+
@login_required()
def index(request):
context = {}