summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ishtar_common/forms_common.py3
-rw-r--r--ishtar_common/wizards.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py
index 99ad857b3..26c463189 100644
--- a/ishtar_common/forms_common.py
+++ b/ishtar_common/forms_common.py
@@ -781,8 +781,7 @@ class ProfileForm(ManageOldType):
'profile_type': models.ProfileType,
'area': models.Area
}
- profile_type = forms.ChoiceField(label=_(u"Type"), choices=[],
- required=False)
+ profile_type = forms.ChoiceField(label=_(u"Type"), choices=[])
area = widgets.Select2MultipleField(label=_(u"Areas"), required=False)
name = forms.CharField(label=_(u"Name"), required=False)
pk = forms.IntegerField(label=" ", widget=forms.HiddenInput, required=False)
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index 62bafdfe4..5a1ab5843 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -1685,6 +1685,8 @@ class AccountWizard(Wizard):
if data.get('DELETE', None):
profile.delete()
continue
+ elif data.get('DELETE', None):
+ continue
name = data.get('name', None)