get_reports#

static ADR.get_reports(*, fields: list | None = None, flat: bool = False) ObjectSet | list#

Return all root report templates, optionally as a values-list.

Parameters:
fieldslist, optional

If provided, use values_list on the underlying queryset with these fields.

flatbool, default: False

Passed through to values_list. Typically used when a single field name is provided in fields.

Returns:
ObjectSet or list

Either an ObjectSet of templates or a list of field tuples/values.