From 748bfc0877350747e2c05fb8b66f1ad9f3b0568a Mon Sep 17 00:00:00 2001 From: MaM Web user Date: Thu, 2 Sep 2021 15:56:24 +0200 Subject: [PATCH] typo2 --- seminar/views/views_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index df8bd676..47a436cd 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -1190,7 +1190,7 @@ def prihlaskaView(request): resitel_perm = Permission.objects.filter(codename__exact='resitel').first() u.user_permissions.add(resitel_perm) resitel_grp = Group.objects.filter(name__exact='resitel').first() - u.user_groups.add(resitel_grp) + u.groups.add(resitel_grp) o = Osoba( jmeno = fcd['jmeno'],