You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue doesnt appear if you use models.ForgienKey('cms.Parent', null=True, on_delete=models.CASCADE, related_name='manyChild') instead of ParentalKey('cms.Parent', null=True, related_name='manyChild')
using this lib in combination with wagtail. but this seems to be unrelated to them
Using
python 3.6
Django 2.1.2
The text was updated successfully, but these errors were encountered:
the following case does not return the results you would expect :
expected 1 result per queryset, gets all results that mach the filter. relation seems to be lost
in this case you would expect the result to be :
[<QuerySet [{'id': 1, 'parent_id': 10, 'data': '1', 'data2': 'a'}]>,<QuerySet [{'id': 3, 'parent_id': 11, 'data': '1', 'data2': 'c'}]>]
But it returns :
[<QuerySet [{'id': 1, 'parent_id': 10, 'data': '1', 'data2': 'a'},{'id': 3, 'parent_id': 11, 'data': '1', 'data2': 'c'}]>,<QuerySet [{'id': 1, 'parent_id': 10, 'data': '1', 'data2': 'a'},{'id': 3, 'parent_id': 11, 'data': '1', 'data2': 'c'}]>]
This issue doesnt appear if you use
models.ForgienKey('cms.Parent', null=True, on_delete=models.CASCADE, related_name='manyChild')
instead ofParentalKey('cms.Parent', null=True, related_name='manyChild')
using this lib in combination with wagtail. but this seems to be unrelated to them
Using
python 3.6
Django 2.1.2
The text was updated successfully, but these errors were encountered: