From 642a0c16fd4d1f282f8c2b73c2382ff1740260b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Koci=C3=A1n?= Date: Wed, 17 Feb 2016 23:30:47 +0100 Subject: [PATCH] =?UTF-8?q?TexUploadView:=20nepovinn=C3=A9=20body?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seminar/views.py b/seminar/views.py index 0d568cd2..a92f5636 100644 --- a/seminar/views.py +++ b/seminar/views.py @@ -597,7 +597,8 @@ def TexUploadView(request): else: problem.text_zadani = html problem.nazev = meta["nazev"] - problem.body = meta["body"] + if "body" in meta: + problem.body = meta["body"] problem.save()