def save_form(form, actor=None):
    """Allows storing a form with a passed actor. Normally, Form.save() does not accept an actor, but if you require
    this to be passed (is not handled by middleware), you can use this to replace form.save().

    Requires you to use the audit.Model model as the actor is passed to the object's save method.
    """

    obj = form.save(commit=False)
    obj.save(actor=actor)
    form.save_m2m()
    return obj