for example, filter a model
models.objects.get(***field_name***=conditions)
my question is, can field_name be the result of a variable? For example,
field_list = {"field_name": name}
models.objects.get(field_list["field_name"]=conditions)
field_list = [name, age, gender, ...]
models.objects.get(field_list[0]=conditions)
is there any way to achieve this effect? The methods I have tried so far, such as getattr, etc., have no effect