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
docs: Fixed "prefetch deeper relationships" documentation to make it clear it's not just a matter of not being "efficient" with heterogeneous targets - it literally doesn't work
**Warning**: This approach has serious limitations:
77
77
78
78
- You need to know the target's type and relationships in advance
79
-
- It won't work efficiently with heterogeneous targets (different model types)
79
+
- Only works when ALL notifications in the queryset have the same target model type
80
+
- It will raise `AttributeError` with heterogeneous targets (different model types) - if even one notification has a different target type that lacks the specified relationship, the entire query will fail
80
81
- Each additional relationship level requires explicit prefetching
0 commit comments