fix bug with infinite relation auto extraction, finish initial relations docs

This commit is contained in:
collerek
2020-08-14 14:35:42 +02:00
parent 6b0cfdbfd3
commit 002f27f21e
4 changed files with 143 additions and 30 deletions

View File

@ -120,7 +120,7 @@ async def test_right_tables_join():
async def test_multiple_reverse_related_objects():
async with database:
classes = await SchoolClass.objects.select_related(
["teachers__category", "students"]
["teachers__category", "students__category"]
).all()
assert classes[0].name == "Math"
assert classes[0].students[1].name == "Jack"