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
> - 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
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
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 =
4 matches
Mail list logo