﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6328	ModelForm doc mistake?	LongMan <alx.gsv@…>	nobody	"I read that i can create form to add an article with no parameters:
{{{
# Create the form class.
>>> class ArticleForm(ModelForm):
...     class Meta:
...         model = Article

# Creating a form to add an article.
>>> form = ArticleForm()
}}}

But, newforms/models.py
{{{
class BaseModelForm(BaseForm):
    def __init__(self, instance, data=None, files=None, auto_id='id_%s', prefix=None,
                 initial=None, error_class=ErrorList, label_suffix=':'):
        ...
}}}
requires 1 argument — instance. So i got an error:
{{{
File ""/home/longman/workspace/youssr/youssr/../youssr/posting/views.py"" in post_edit
  66.         form = EntryForm()

Exception Type: TypeError at /posts/write/
Exception Value: __init__() takes at least 2 arguments (1 given)
}}}"		closed	Documentation	dev		invalid	newforms	alx.gsv@… thejaswi.puthraya@…	Unreviewed	0	0	0	0	0	0
