#36638: The default for ArrayAgg should be an empty list rather than None
-------------------------------------+-------------------------------------
Reporter: Markus Amalthea | Type:
Magnuson | Uncategorized
Status: new | Component:
| Uncategorized
Version: 5.2 | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
I would expect (in Python, broadly) a function that returns a list of
values to always return a list. What is the reasoning behind this not
being the case for ArrayAgg? Instead, the default value is `None` when
there are no values, and I'm sure there is a good reason for this.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36638>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.