Migr 0052 e-maily nejsou case-sensitive

This commit is contained in:
Pavel "LEdoian" Turinsky 2021-04-24 02:20:59 +02:00
parent 1d062680f6
commit f29ff541dc
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@ def spoj_k_organizatorum_osoby(apps, scema_editor):
raise EndException raise EndException
# Hledáme podle e-mailu # 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 != '': if osoby.count() != 0 and user.email != '':
osoba = osoby.first() osoba = osoby.first()
if osoba.user is None: if osoba.user is None:

View file

@ -36,7 +36,7 @@ def spoj_k_organizatorum_osoby(apps, scema_editor):
raise EndException raise EndException
# Hledáme podle e-mailu # 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 != '': if osoby.count() != 0 and user.email != '':
osoba = osoby.first() osoba = osoby.first()
if osoba.user is None: if osoba.user is None: