[Answer]-Django, best practice to execute an action for each instance of a model

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]
👤iMom0

Leave a comment