diff --git a/rhodecode/model/notification.py b/rhodecode/model/notification.py --- a/rhodecode/model/notification.py +++ b/rhodecode/model/notification.py @@ -40,6 +40,8 @@ log = logging.getLogger(__name__) class NotificationModel(BaseModel): + cls = Notification + def __get_notification(self, notification): if isinstance(notification, Notification): return notification