Skip to content

Commit

Permalink
fix for saving regional lead instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
curioswati committed Dec 24, 2015
1 parent 1cee930 commit 80f9a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wye/regions/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def clean(self):
raise ValidationError(error_message)

def save(self, force_insert=False, force_update=False, commit=True):
m = super(RegionalLeadForm, self).save(commit=False)
m = super(RegionalLeadForm, self).save()
for u in self.cleaned_data['leads']:
u.profile.usertype.add(UserType.objects.get(slug='lead'))
return m
Expand Down

0 comments on commit 80f9a11

Please sign in to comment.