summaryrefslogtreecommitdiff
path: root/tests/model_formsets
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-10-08 17:17:10 -0400
committerTim Graham <timograham@gmail.com>2015-10-27 07:57:15 -0400
commit9c5e272860c076736237d4b280c7c922c46ba273 (patch)
tree69727482a17b9bf2594c0755ee9f00f5f361cea0 /tests/model_formsets
parent0b5d32facaa1badc0553934f6935507070cfea1b (diff)
Fixed #25550 -- Deprecated direct assignment to the reverse side of a related set.
Diffstat (limited to 'tests/model_formsets')
-rw-r--r--tests/model_formsets/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_formsets/tests.py b/tests/model_formsets/tests.py
index b39054c7e4..cb93b2fce3 100644
--- a/tests/model_formsets/tests.py
+++ b/tests/model_formsets/tests.py
@@ -344,7 +344,7 @@ class ModelFormsetTest(TestCase):
author3 = Author.objects.create(name='Walt Whitman')
meeting = AuthorMeeting.objects.create(created=date.today())
- meeting.authors = Author.objects.all()
+ meeting.authors.set(Author.objects.all())
# create an Author instance to add to the meeting.