Re: ModelForm usage

2009-11-20 Thread gerhard . oettl
Daniel Roseman schrieb: > On Nov 11, 10:04 am, gerhard.oe...@ogersoft.at wrote: >> Hello >> >> I am new to django and try to use the ModelForm paradigma, but can't get the >> point ;-(( > > As the documentation says, the point of a modelform is firstly to > validate input from a user and save it t

Re: ModelForm usage

2009-11-12 Thread pjrhar...@gmail.com
> - first try for empty record, expecting an empty Project-object to be created > from the form automatically: > projectForm = forms.ProjectForm() > projectForm.save() > => result: 'ProjectForm' object has no attribute 'cleaned_data' You need to run the clean method on the form to make sure the dat

Re: ModelForm usage

2009-11-11 Thread Daniel Roseman
On Nov 11, 10:04 am, gerhard.oe...@ogersoft.at wrote: > Hello > > I am new to django and try to use the ModelForm paradigma, but can't get the > point ;-(( As the documentation says, the point of a modelform is firstly to validate input from a user and save it to the database, and secondly to dis

ModelForm usage

2009-11-11 Thread gerhard . oettl
Hello I am new to django and try to use the ModelForm paradigma, but can't get the point ;-(( My example: models.py: class Project(models.Model): id = models.AutoField(primary_key=True) deletetime = models.DateTimeField() name = models.CharField(max_length=50) beginDate =