Sorry if I'm missing something obvious here as my search isn't turning up anything relevant. I am doing a Django database get query and would like to get each field name during a for loop so that I can do evaluations of it ( if fieldname = "blah") and so on, but I can't seem to figure this out, any advice is appreciated
db_get_data = Modelname.objects.all()
for cur_db_get_data in db_get_data:
#something to get the field name from cur_db_get_data