[Answer]-Where to put object creation logic?

1👍

You don’t need to restrict yourself to models, managers, views or other tools framework provides. Sometimes plain function is what you are looking for.

I don’t know anything about your event logic, but it seems something like this could do the trick:

def possibly_create_transaction(event):
    if event.is_ok():
        return Transaction()

Leave a comment