fix(list): fix distinct usage
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
07e8c987cb
commit
ccb675b0f2
1 changed files with 4 additions and 1 deletions
|
|
@ -239,8 +239,10 @@ def get_list(
|
|||
if not filters:
|
||||
filters = []
|
||||
|
||||
distinct = False
|
||||
if not fields:
|
||||
fields = "distinct *"
|
||||
fields = "*"
|
||||
distinct = True
|
||||
|
||||
if or_filters is None:
|
||||
or_filters = []
|
||||
|
|
@ -267,4 +269,5 @@ def get_list(
|
|||
limit_page_length=limit_page_length,
|
||||
ignore_permissions=ignore_permissions,
|
||||
order_by=order_by,
|
||||
distinct=distinct,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue