Ticket #16887: update_view.patch
File update_view.patch, 670 bytes (added by , 13 years ago) |
---|
-
django/views/generic/edit.py
86 86 # Try to get a queryset and extract the model class 87 87 # from that 88 88 model = self.get_queryset().model 89 return model_forms.modelform_factory(model) 89 fields = getattr(self, 'fields', None) 90 exclude = getattr(self, 'exclude', None) 91 return forms.models.modelform_factory(model, fields=fields, exclude=exclude) 90 92 91 93 def get_form_kwargs(self): 92 94 """