﻿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
16887	Allow Update/CreateView to have fields/exclude arguments	linovia	linovia	"The general idea behind generic views is to ease the development.
One of the issue I have found is that removing fields from the form leads to extra work by redefining another model form for that view.

{{{
class MilestoneForm(forms.ModelForm):
    class Meta:
        model = models.Milestone
        exclude = ('project', 'slug')

class CreateMilestone(generic.CreateView):
    model = models.Milestone
    template_name_suffix = 's/new'
    form_class = MilestoneForm
}}}

whereas we could have a much simpler way:

{{{
class CreateMilestone(generic.CreateView):
    model = models.Milestone
    template_name_suffix = 's/new'
    exclude = ('project', 'slug')
}}}"	New feature	closed	Generic views	1.3	Normal	wontfix			Unreviewed	1	0	1	0	0	0
