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
**Warning**: This approach has serious limitations:
81
-
82
-
- You need to know the target's type and relationships in advance
83
-
- Only works when ALL notifications in the queryset have the same target model type
84
-
- 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
85
-
- Each additional relationship level requires explicit prefetching
80
+
> [!WARNING]
81
+
> This approach has serious limitations:
82
+
>
83
+
> - You need to know the target's type and relationships in advance
84
+
> - Only works when ALL notifications in the queryset have the same target model type
85
+
> - 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
86
+
> - Each additional relationship level requires explicit prefetching
0 commit comments