diff options
| author | Brian Rosner <brosner@gmail.com> | 2008-07-15 22:41:17 +0000 |
|---|---|---|
| committer | Brian Rosner <brosner@gmail.com> | 2008-07-15 22:41:17 +0000 |
| commit | 55744e997f92f24608910eecf60509603ec87fec (patch) | |
| tree | 84de0937813db909e11856c853a172625892b31b /docs | |
| parent | a2c7bfc1bee48b2aed9124c1a5a59a72274c73f7 (diff) | |
newforms-admin: Fixed #7230 -- Added a save_m2m method to BaseModelFormSet when commit=False is passed to save. Thanks Books Travis for the original report.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/modelforms.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/modelforms.txt b/docs/modelforms.txt index 5cff11fdeb..9c06bc409d 100644 --- a/docs/modelforms.txt +++ b/docs/modelforms.txt @@ -454,7 +454,9 @@ model instances without any database interaction:: ... instance.save() This gives you the ability to attach data to the instances before saving them -to the database. +to the database. If your formset contains a ``ManyToManyField`` you will also +need to make a call to ``formset.save_m2m()`` to ensure the many-to-many +relationships are saved properly. Limiting the number of objects editable --------------------------------------- |
