fix: incorrect type in make_property_setter query (#16584)

* fix: incorrect type in make_property_setter query

* fix: Remove redundant as_list kwarg

Co-authored-by: gavin <gavin18d@gmail.com>
This commit is contained in:
Ankush Menat 2022-04-12 12:00:11 +05:30 committed by GitHub
parent 022bbe9889
commit da5a5eda02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1536,7 +1536,7 @@ def make_property_setter(
.select(DocField_doctype.parent)
.where(DocField_doctype.fieldname == args.fieldname)
.distinct()
).run(as_list=True)
).run(pluck=True)
else:
doctype_list = [args.doctype]