Fixup 0c99ef2f15231a6128481c8f6bd992e7d8751570

* add missing import
* fix model call
* use `notification.event.id` instead of `notification.event_id`, as
notification isn't in the database yet and therefore doesn't have an
event_id as of this point.