From 55744e997f92f24608910eecf60509603ec87fec Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Tue, 15 Jul 2008 22:41:17 +0000 Subject: 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 --- docs/modelforms.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs') 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 --------------------------------------- -- cgit v1.3