def profile_form(self): return OrgaProfileForm( instance=self.request.user, data=self.request.POST if is_form_bound(self.request, 'profile') else None, )
def profile_form(self): return OrgaProfileForm(instance=self.request.user, data=(self.request.POST if self.request.method == 'POST' and self.request.POST.get('form') == 'profile' else None))