Show More
@@ -1608,7 +1608,7 class Notification(Base, BaseModel): | |||||
1608 | def recipients(self): |
|
1608 | def recipients(self): | |
1609 | return [x.user for x in UserNotification.query()\ |
|
1609 | return [x.user for x in UserNotification.query()\ | |
1610 | .filter(UserNotification.notification == self)\ |
|
1610 | .filter(UserNotification.notification == self)\ | |
1611 | .order_by(UserNotification.user).all()] |
|
1611 | .order_by(UserNotification.user_id.asc()).all()] | |
1612 |
|
1612 | |||
1613 | @classmethod |
|
1613 | @classmethod | |
1614 | def create(cls, created_by, subject, body, recipients, type_=None): |
|
1614 | def create(cls, created_by, subject, body, recipients, type_=None): |
General Comments 0
You need to be logged in to leave comments.
Login now