Skip to content

Commit

Permalink
Fixed #3972 -- Updated docstring. Patch from SmileyChris.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Jun 15, 2007
1 parent 4a61c2f commit 762e677
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions django/newforms/models.py
Expand Up @@ -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``. Saves bound Form ``form``'s cleaned_data into model instance ``instance``.
Assumes ``form`` has a field for every non-AutoField database field in If commit=True, then the changes to ``instance`` will be saved to the
``instance``. If commit=True, then the changes to ``instance`` will be database. Returns ``instance``.
saved to the database. Returns ``instance``.
""" """
from django.db import models from django.db import models
opts = instance.__class__._meta opts = instance.__class__._meta
Expand Down

0 comments on commit 762e677

Please sign in to comment.