diff rhodecode/model/notification.py @ 2522:17893d61792a beta

Added associated classes into child models
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 01 Jul 2012 12:44:54 +0200
parents d04243e932cc
children 3fdf7c3be2c9
line wrap: on
line diff
--- a/rhodecode/model/notification.py	Sun Jul 01 12:40:00 2012 +0200
+++ b/rhodecode/model/notification.py	Sun Jul 01 12:44:54 2012 +0200
@@ -40,6 +40,8 @@
 
 class NotificationModel(BaseModel):
 
+    cls = Notification
+
     def __get_notification(self, notification):
         if isinstance(notification, Notification):
             return notification