From f03ffb19a3be391885bf4b147e97ec6201342e6d Mon Sep 17 00:00:00 2001 From: Nazar Kotjuk Date: Thu, 24 Sep 2015 21:08:37 +0300 Subject: [PATCH] Tag fix. News logo fix --- conference/forms.py | 3 ++- exposition/forms.py | 6 ++++-- templates/client/includes/article/news_on_main_logo.html | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/conference/forms.py b/conference/forms.py index 12040fc2..897f441b 100644 --- a/conference/forms.py +++ b/conference/forms.py @@ -132,7 +132,8 @@ class ConferenceCreateForm(forms.Form): else: conference = obj conference.theme.clear() - conference.tag.clear() + if data.get('tag'): + conference.tag.clear() #simple fields if not getattr(conference, 'url'): diff --git a/exposition/forms.py b/exposition/forms.py index 7036432a..8b431736 100644 --- a/exposition/forms.py +++ b/exposition/forms.py @@ -161,9 +161,11 @@ class ExpositionCreateForm(forms.Form): else: exposition = obj exposition.theme.clear() - exposition.tag.clear() + + exposition.organiser.clear() - #exposition.company.clear() + if data.get('tag'): + exposition.tag.clear() #simple fields if not getattr(exposition, 'url'): diff --git a/templates/client/includes/article/news_on_main_logo.html b/templates/client/includes/article/news_on_main_logo.html index 51e2920d..9ae0fa5e 100644 --- a/templates/client/includes/article/news_on_main_logo.html +++ b/templates/client/includes/article/news_on_main_logo.html @@ -2,7 +2,7 @@ {% load thumbnail %} {% if obj.logo %} - {% thumbnail obj.logo "80x80" format="PNG" as im %} + {% thumbnail obj.logo "70x70" format="PNG" as im %} {% endthumbnail %} {% else %}