perf: 修改基础 model,继承同一个

This commit is contained in:
ibuler
2022-12-20 20:23:42 +08:00
parent a7815dc9e5
commit 58909ee67d
58 changed files with 1135 additions and 344 deletions

View File

@@ -12,6 +12,7 @@ class UserMsgSubscription(JMSBaseModel):
verbose_name=_('User')
)
receive_backends = models.JSONField(default=list, verbose_name=_('receive backend'))
comment = ''
class Meta:
verbose_name = _('User message')
@@ -25,6 +26,7 @@ class SystemMsgSubscription(JMSBaseModel):
users = models.ManyToManyField('users.User', related_name='system_msg_subscriptions')
groups = models.ManyToManyField('users.UserGroup', related_name='system_msg_subscriptions')
receive_backends = models.JSONField(default=list)
comment = ''
message_type_label = ''