Fixed #3972 -- Updated docstring. Patch from SmileyChris.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-06-15 00:26:30 +00:00
parent 4a61c2f912
commit 762e677d26
1 changed files with 2 additions and 3 deletions

View File

@ -19,9 +19,8 @@ def save_instance(form, instance, fields=None, fail_message='saved', commit=True
"""
Saves bound Form ``form``'s cleaned_data into model instance ``instance``.
Assumes ``form`` has a field for every non-AutoField database field in
``instance``. If commit=True, then the changes to ``instance`` will be
saved to the database. Returns ``instance``.
If commit=True, then the changes to ``instance`` will be saved to the
database. Returns ``instance``.
"""
from django.db import models
opts = instance.__class__._meta