mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #32294 -- Prevented ManyToManyField's hidden related name collisions between apps.
This commit is contained in:
parent
74fd233b14
commit
a9a7421ab8
4 changed files with 44 additions and 14 deletions
|
@ -257,7 +257,7 @@ class RelationTreeTests(SimpleTestCase):
|
|||
self.assertEqual(
|
||||
sorted(field.related_query_name() for field in BasePerson._meta._relation_tree),
|
||||
sorted([
|
||||
'+', '_relating_basepeople_hidden_+', 'BasePerson_following_abstract+',
|
||||
'+', '_model_meta_relating_basepeople_hidden_+', 'BasePerson_following_abstract+',
|
||||
'BasePerson_following_abstract+', 'BasePerson_following_base+', 'BasePerson_following_base+',
|
||||
'BasePerson_friends_abstract+', 'BasePerson_friends_abstract+', 'BasePerson_friends_base+',
|
||||
'BasePerson_friends_base+', 'BasePerson_m2m_abstract+', 'BasePerson_m2m_base+', 'Relating_basepeople+',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue