Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmcd committed Oct 12, 2012
2 parents e9f5c0c + 60fcb56 commit 831d813
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mezzanine/accounts/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def save(self, *args, **kwargs):
# Save profile model.
if self._has_profile:
profile = user.get_profile()
ProfileFieldsForm(self.data, instance=profile).save()
profile_fields_form = self.get_profile_fields_form()
profile_fields_form(self.data, instance=profile).save()

if self._signup:
settings.use_editable()
Expand All @@ -171,6 +172,9 @@ def save(self, *args, **kwargs):
password=password, is_active=True)
return user

def get_profile_fields_form(self):
return ProfileFieldsForm


class PasswordResetForm(Html5Mixin, forms.Form):
"""
Expand Down

0 comments on commit 831d813

Please sign in to comment.