Can Django be a variable in the case of filter or get, etc., where the conditional name (field name) is a variable?

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

Apr.16,2021

var = "field_name"
field_list = {var:conditions}
-sharp field_list {"field_name":conditions}
models.objects.get(**field_list)
-sharp models.objects.get(**field_list) = models.objects.get(key=conditions)

* * kwargs takes the kv key-value pair in the dictionary as an argument to the function in KFV format. The key of the dictionary can be set through variables. Of course, it must be a string.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bf5d-34686.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bf5d-34686.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?