Ticket #6114: modelforms_doc.patch
File modelforms_doc.patch, 520 bytes (added by , 17 years ago) |
---|
-
docs/modelforms.txt
276 276 for the missing, but required fields, or use ``save(commit=False)`` and 277 277 manually set anyextra required fields:: 278 278 279 instance = Instance(requi ured_field='value')279 instance = Instance(required_field='value') 280 280 form = InstanceForm(instance, request.POST) 281 281 new_instance = form.save() 282 282