Add support for targeting notifications to organizations and remove the password_required notification for new orbs

This commit is contained in:
Joseph Schorr 2014-03-12 19:00:24 -04:00
parent 578add3b9e
commit 525ef8d14f
8 changed files with 61 additions and 16 deletions

View file

@ -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)