1👍
I think what you want is
actions = ActionQueue.objects.filter(action_type='exam')
then
actions.update(...)
or
action_list = list(actions)
# do something with action_list
[do_something(action) for action in action_list]
Source:stackexchange.com