mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #25550 -- Deprecated direct assignment to the reverse side of a related set.
This commit is contained in:
parent
0b5d32faca
commit
9c5e272860
37 changed files with 194 additions and 130 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue