From 92fc959252aca19949e8ca154b34aee6dce383c5 Mon Sep 17 00:00:00 2001 From: Slava Kyrachevsky Date: Mon, 23 Jan 2017 12:34:02 +0200 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D1=8B=20=D1=81=20?= =?UTF-8?q?=D0=BC=D0=B0=D1=81=D1=82=D0=B5=D1=80=20=D0=B2=D0=B5=D1=82=D0=BA?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/conference/forms.py | 3 ++- proj/settings.py | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/conference/forms.py b/apps/conference/forms.py index c636ab93..3cdb0d39 100644 --- a/apps/conference/forms.py +++ b/apps/conference/forms.py @@ -181,7 +181,8 @@ class ConferenceCreateForm(forms.Form): # conference.quality_label = flag - conference.audience = data['audience'] + if data.get('audience'): + conference.audience = data['audience'] if data.get('country'): conference.country = Country.objects.get(id=data['country'])#.id cause select uses queryset diff --git a/proj/settings.py b/proj/settings.py index 79a6b8a3..8a9f363a 100644 --- a/proj/settings.py +++ b/proj/settings.py @@ -400,7 +400,7 @@ INSTALLED_APPS = ( 'south', 'rosetta', 'widget_tweaks', - 'raven.contrib.django.raven_compat', + # 'raven.contrib.django.raven_compat', ) CRONJOBS = [ @@ -531,9 +531,9 @@ PERIODIC = { } # sentry -RAVEN_CONFIG = { - 'dsn': 'http://eb7e4b632b3543f487386cbe9151b174:0b148a7ed13643c88d3a6b014c3a4f65@sentry.oldmin.org/2', -} +# RAVEN_CONFIG = { +# 'dsn': 'http://eb7e4b632b3543f487386cbe9151b174:0b148a7ed13643c88d3a6b014c3a4f65@sentry.oldmin.org/2', +# } try: from local import *