From f29ff541dc104f3dfee066bcfa63b10f37409dcb Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Sat, 24 Apr 2021 02:20:59 +0200 Subject: [PATCH] Migr 0052 e-maily nejsou case-sensitive --- seminar/migrations/0001_squashed_0067_auto_20190814_0805.py | 2 +- seminar/migrations/0052_user_to_organizator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/seminar/migrations/0001_squashed_0067_auto_20190814_0805.py b/seminar/migrations/0001_squashed_0067_auto_20190814_0805.py index 143403b9..eb2d950f 100644 --- a/seminar/migrations/0001_squashed_0067_auto_20190814_0805.py +++ b/seminar/migrations/0001_squashed_0067_auto_20190814_0805.py @@ -128,7 +128,7 @@ def spoj_k_organizatorum_osoby(apps, scema_editor): raise EndException # Hledáme podle e-mailu - osoby = Osoba.objects.filter(email=user.email) + osoby = Osoba.objects.filter(email__iexact=user.email) if osoby.count() != 0 and user.email != '': osoba = osoby.first() if osoba.user is None: diff --git a/seminar/migrations/0052_user_to_organizator.py b/seminar/migrations/0052_user_to_organizator.py index 4aef1a1d..47d151ae 100644 --- a/seminar/migrations/0052_user_to_organizator.py +++ b/seminar/migrations/0052_user_to_organizator.py @@ -36,7 +36,7 @@ def spoj_k_organizatorum_osoby(apps, scema_editor): raise EndException # Hledáme podle e-mailu - osoby = Osoba.objects.filter(email=user.email) + osoby = Osoba.objects.filter(email__iexact=user.email) if osoby.count() != 0 and user.email != '': osoba = osoby.first() if osoba.user is None: