Ticket #5126: initial-data-newforms-admin.diff
File initial-data-newforms-admin.diff, 526 bytes (added by , 17 years ago) |
---|
-
django/newforms/models.py
16 16 __all__ = ( 17 17 'save_instance', 'form_for_model', 'form_for_instance', 'form_for_fields', 18 18 'ModelChoiceField', 'ModelMultipleChoiceField', 'formset_for_model', 19 'inline_formset' 19 'inline_formset', 'initial_data' 20 20 ) 21 21 22 22 def save_instance(form, instance, fields=None, fail_message='saved', commit=True):