Commit 7ab11a3
committed
add select_related and partial prefetch_related support
implement support for a single query for select related base fetches across polymorphic models.
adds a polymorphic QuerySet Mixin to enable non polymorphic models to fetch related models.
fixes: #198 #436 #359 #244
possible fixes:
#498: support for prefetch_related cannot fetch attributes not on all child models or via class names
related: #5311 parent bd5faf0 commit 7ab11a3
File tree
5 files changed
+1398
-54
lines changed- polymorphic
- tests
- migrations
5 files changed
+1398
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
201 | 203 | | |
202 | | - | |
203 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
204 | 213 | | |
205 | 214 | | |
206 | 215 | | |
| |||
0 commit comments