Add support for targeting notifications to organizations and remove the password_required notification for new orbs
This commit is contained in:
parent
578add3b9e
commit
525ef8d14f
8 changed files with 61 additions and 16 deletions
|
@ -278,7 +278,7 @@ class NotificationKind(BaseModel):
|
|||
class Notification(BaseModel):
|
||||
uuid = CharField(default=uuid_generator, index=True)
|
||||
kind = ForeignKeyField(NotificationKind, index=True)
|
||||
notification_user = ForeignKeyField(User, index=True)
|
||||
target = ForeignKeyField(User, index=True)
|
||||
metadata_json = TextField(default='{}')
|
||||
created = DateTimeField(default=datetime.now, index=True)
|
||||
|
||||
|
|
Reference in a new issue