fix: 修改消息订阅 (#6789)

Co-authored-by: xinwen <coderWen@126.com>
This commit is contained in:
fit2bot
2021-09-09 20:12:52 +08:00
committed by GitHub
parent dc742d1281
commit 81000953e2
12 changed files with 31 additions and 15 deletions

View File

@@ -6,7 +6,7 @@ __all__ = ('SystemMsgSubscription', 'UserMsgSubscription')
class UserMsgSubscription(JMSModel):
user = models.OneToOneField('users.User', related_name='user_msg_subscriptions', on_delete=models.CASCADE)
user = models.OneToOneField('users.User', related_name='user_msg_subscription', on_delete=models.CASCADE)
receive_backends = models.JSONField(default=list)
def __str__(self):