diff options
| author | Tim Graham <timograham@gmail.com> | 2015-10-08 17:17:10 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-10-27 07:57:15 -0400 |
| commit | 9c5e272860c076736237d4b280c7c922c46ba273 (patch) | |
| tree | 69727482a17b9bf2594c0755ee9f00f5f361cea0 /tests/model_formsets | |
| parent | 0b5d32facaa1badc0553934f6935507070cfea1b (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.py | 2 |
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. |
