Tag fix. News logo fix

remotes/origin/1203
Nazar Kotjuk 10 years ago
parent a04fe870fa
commit f03ffb19a3
  1. 3
      conference/forms.py
  2. 6
      exposition/forms.py
  3. 2
      templates/client/includes/article/news_on_main_logo.html

@ -132,7 +132,8 @@ class ConferenceCreateForm(forms.Form):
else: else:
conference = obj conference = obj
conference.theme.clear() conference.theme.clear()
conference.tag.clear() if data.get('tag'):
conference.tag.clear()
#simple fields #simple fields
if not getattr(conference, 'url'): if not getattr(conference, 'url'):

@ -161,9 +161,11 @@ class ExpositionCreateForm(forms.Form):
else: else:
exposition = obj exposition = obj
exposition.theme.clear() exposition.theme.clear()
exposition.tag.clear()
exposition.organiser.clear() exposition.organiser.clear()
#exposition.company.clear() if data.get('tag'):
exposition.tag.clear()
#simple fields #simple fields
if not getattr(exposition, 'url'): if not getattr(exposition, 'url'):

@ -2,7 +2,7 @@
{% load thumbnail %} {% load thumbnail %}
{% if obj.logo %} {% if obj.logo %}
{% thumbnail obj.logo "80x80" format="PNG" as im %} {% thumbnail obj.logo "70x70" format="PNG" as im %}
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" class="pic" alt=""> <img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" class="pic" alt="">
{% endthumbnail %} {% endthumbnail %}
{% else %} {% else %}

Loading…
Cancel
Save