﻿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
4694	Custom method for Model to simplify getting formfields	vsevolod.solovyov@…	Adrian Holovaty	"This method will simplify creating of complex forms. Now it's clear what fields belong to what models.
{{{
class BookmarkForm(Form):
    url = Bookmark.get_form_field('url')
    title = Scrapbook.get_form_field('title')
    description = Scrapbook.get_form_field('description')
}}}
Instead of:
{{{
class BookmarkForm(Form):
    url = forms.URLField(max_length=200, verify_exists=False, label=u'URL')
    title = forms.CharField(max_length=256, required=False, label=u'Title')
    description = forms.CharField(required=False, label=u'Description', widget=forms.Textinput())
}}}
If patch itself is ok, I'll write documentation and tests."		closed	Forms	dev		wontfix			Unreviewed	1	0	0	0	0	0
