Re: ModelForm refuses to save instance

2009-09-18 Thread Tom Evans
On Fri, 2009-09-18 at 15:29 +0100, Tom Evans wrote: > On Fri, 2009-09-18 at 06:53 -0700, Daniel Roseman wrote: > > On Sep 18, 1:01 pm, Tom Evans wrote: > > > Hi all. I have a model form to update two attributes on a UserProfile. > > > > > > The form is simple: > > > > > > class UserProfileSetReme

Re: ModelForm refuses to save instance

2009-09-18 Thread Tom Evans
On Fri, 2009-09-18 at 06:53 -0700, Daniel Roseman wrote: > On Sep 18, 1:01 pm, Tom Evans wrote: > > Hi all. I have a model form to update two attributes on a UserProfile. > > > > The form is simple: > > > > class UserProfileSetRememberMeForm(forms.ModelForm): > > DURATION_CHOICES = ( > >

Re: ModelForm refuses to save instance

2009-09-18 Thread Daniel Roseman
On Sep 18, 1:01 pm, Tom Evans wrote: > Hi all. I have a model form to update two attributes on a UserProfile. > > The form is simple: > > class UserProfileSetRememberMeForm(forms.ModelForm): > DURATION_CHOICES = ( > ( 0, 'Default (2 weeks)'), > ( 1 * 7 * 24 * 60 * 60, '1 week'), >

ModelForm refuses to save instance

2009-09-18 Thread Tom Evans
Hi all. I have a model form to update two attributes on a UserProfile. The form is simple: class UserProfileSetRememberMeForm(forms.ModelForm): DURATION_CHOICES = ( ( 0, 'Default (2 weeks)'), ( 1 * 7 * 24 * 60 * 60, '1 week'), ) YESNO_CHOICES = ( (0, 'No'), (1, 'Yes'), )