Changes between Version 1 and Version 2 of Ticket #36693, comment 2


Ignore:
Timestamp:
Oct 28, 2025, 5:42:24 PM (4 weeks ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36693, comment 2

    v1 v2  
    11ontowee's assessment is on point.
    22
    3 You haven't provided your model definition so it's hard to tell for sure but all signs point at [https://dryorm.xterm.info/ticket-36693 your aggregate function targeting a multi-valued nullable relationship] (`sites`) which means that it will include `NULL` when there are no matches.
     3You haven't provided your model definition so it's hard to tell for sure but all signs point at [https://dryorm.xterm.info/ticket-36693-compare your aggregate function targeting a multi-valued nullable relationship] (`sites`) which means that it will include `NULL` when there are no matches.
    44
    55If you want to exclude them from the targeted set you should pass `filter=~Q(sites=None)` to your `ArrayAgg` which will default to `NULL` on an empty set and use the provided `default`.
Back to Top