[Answered ]-Is it possible to use a list of fields to query a model in Django

1👍

Try this, fields_list must be the fields of model

fields_list = [field1, field2, ...]
qs_target_model = target_model.values(*fields_list) #, field3)

Leave a comment