Show More
@@ -1158,7 +1158,7 class UserNotification(Base, BaseModel): | |||
|
1158 | 1158 | |
|
1159 | 1159 | user = relationship('User', lazy="joined") |
|
1160 | 1160 | notification = relationship('Notification', lazy="joined", |
|
1161 | rder_by=lambda: Notification.created_on.desc(),) | |
|
1161 | order_by=lambda: Notification.created_on.desc(),) | |
|
1162 | 1162 | |
|
1163 | 1163 | def mark_as_read(self): |
|
1164 | 1164 | self.read = True |
General Comments 0
You need to be logged in to leave comments.
Login now