Commit 4d6fe1e9 authored by Jitka Novotna's avatar Jitka Novotna

get instead []

parent 906e0626
...@@ -243,9 +243,9 @@ class DashboardSettingsForm(forms.ModelForm): ...@@ -243,9 +243,9 @@ class DashboardSettingsForm(forms.ModelForm):
''' '''
Check if component list is selected when required. Check if component list is selected when required.
''' '''
if self.cleaned_data['dashboard_view'] == \ if self.cleaned_data.get('dashboard_view') == \
Profile.DASHBOARD_COMPONENT_LIST and \ Profile.DASHBOARD_COMPONENT_LIST and \
self.cleaned_data['dashboard_component_list'] is None: self.cleaned_data.get('dashboard_component_list') is None:
raise forms.ValidationError( raise forms.ValidationError(
_("Component list must be selected when used as default.")) _("Component list must be selected when used as default."))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment