1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

[4.2.x] Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.

This commit is contained in:
django-bot
2023-03-01 13:35:43 +01:00
committed by Mariusz Felisiak
parent 32f224e359
commit 62510f01e7
193 changed files with 5798 additions and 4482 deletions

View File

@@ -29,8 +29,8 @@ objects:
>>> from django.db.models import OuterRef
>>> from django.db.models.functions import JSONObject
>>> from django.contrib.postgres.expressions import ArraySubquery
>>> books = Book.objects.filter(author=OuterRef('pk')).values(
... json=JSONObject(title='title', pages='pages')
>>> books = Book.objects.filter(author=OuterRef("pk")).values(
... json=JSONObject(title="title", pages="pages")
... )
>>> author = Author.objects.annotate(books=ArraySubquery(books)).first()
>>> author.books