From ab63226c28128d2b86711d77d21f5e32b82cadf8 Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Sat, 4 Sep 2021 22:36:15 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20Mezery=20v=20e-mailu=20po=20posl=C3=A1n?= =?UTF-8?q?=C3=AD=20=C5=99e=C5=A1en=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/views/views_all.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index 180990cc..180990b6 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -1098,8 +1098,8 @@ class NahrajReseniView(LoginRequiredMixin, CreateView): resitel = Osoba.objects.get(user = self.request.user) - seznam = "problému" + str(problemy[0]) if len(problemy) == 1 else 'následujícím problémům:\n' + ', \n'.join(map(str, problemy)) - seznam_do_subjectu = "problému" + str(problemy[0]) + ("" if len(problemy) == 1 else f"(a dalším{ len(problemy) - 1 })") + seznam = "problému " + str(problemy[0]) if len(problemy) == 1 else 'následujícím problémům:\n' + ', \n'.join(map(str, problemy)) + seznam_do_subjectu = "problému " + str(problemy[0]) + ("" if len(problemy) == 1 else f"(a dalším{ len(problemy) - 1 })") send_mail( subject="Nové řešení k " + seznam_do_subjectu,