﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36693	"The ""default"" argument for ArrayAgg is being ignored"	Bryant Glisson		"I am overriding the `get_queryset` method of the admin and returning the following:

{{{
return super().get_queryset(request).annotate(sites_list=ArrayAgg('sites__name', default=Value([]), distinct=True))
}}}

The idea is to return a list of what sites a given record is associated with. When there are no sites, I'd like it to return an empty list. The docs suggest that the above should accomplish this, but it's returning `[None]` instead. I tried replacing `Value([])` with `[]`, but results are unchanged. If I replace it with `""TEST""`, I get an error ""malformed array literal: 'TEST'"", so it is attempting to interact with the argument, but both of the attempts at providing a list here are ignored. Any idea what may be causing this?"	Bug	closed	Database layer (models, ORM)	5.2	Normal	invalid	annotation, array aggregation		Unreviewed	0	0	0	0	0	0
