mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #25550 -- Deprecated direct assignment to the reverse side of a related set.
This commit is contained in:
@@ -15,7 +15,7 @@ class CustomColumnsTests(TestCase):
|
||||
self.authors = [self.a1, self.a2]
|
||||
|
||||
self.article = Article.objects.create(headline="Django lets you build Web apps easily", primary_author=self.a1)
|
||||
self.article.authors = self.authors
|
||||
self.article.authors.set(self.authors)
|
||||
|
||||
def test_query_all_available_authors(self):
|
||||
self.assertQuerysetEqual(
|
||||
|
||||
Reference in New Issue
Block a user