We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f3c778 commit ecb27d1Copy full SHA for ecb27d1
docs/cookbook.md
@@ -122,17 +122,15 @@ from django_readers import specs
122
123
spec = [
124
"name",
125
- {
126
- "books_2022": specs.relationship(
127
- "book_set",
128
- [
129
- pairs.filter(publication_date__year=2022),
130
- "id",
131
- "title",
132
- ],
133
- to_attr="books_2022",
134
- )
135
- },
+ specs.relationship(
+ "book_set",
+ [
+ pairs.filter(publication_date__year=2022),
+ "id",
+ "title",
+ ],
+ to_attr="books_2022",
+ )
136
]
137
```
138
0 commit comments