Changes between Version 2 and Version 3 of Ticket #36638, comment 2
- Timestamp:
- Oct 3, 2025, 11:16:41 AM (112 minutes ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36638, comment 2
v2 v3 1 1 > You can use `default=Value([])` if you prefer. 2 2 3 You don't have to do the `Value` wrapping, passing `default=[]` works just fine.3 Small FYI that you don't have to do the `Value` wrapping for `ArrayField` expressions, passing `default=[]` works just fine. 4 4 5 `Value` wrapping is only necessary when passing a `str` literal as they default to field references (`'field'` is equivalent to `F('field')`) instead of value literals like any other Python literal does. 5 `Value` wrapping is only necessary when passing a `str` literal as they default to field references (`'field'` is equivalent to `F('field')`) instead of value literals like any other Python literal does. That's the reason why `Value` wrapping is necessary for `JSONBAgg` and `StringAgg` though.