Implements hashify method in Notification model #264.