perf: 合并 migrations (#13187)

* perf: 修改 Migrations

* perf: 合并 migrations

* perf: remove unuse

* perf: change to file

---------

Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
fit2bot
2024-05-11 11:22:01 +08:00
committed by GitHub
parent be214c84d1
commit 313202fe41
532 changed files with 30874 additions and 20795 deletions

View File

@@ -4,8 +4,8 @@
import base64
import datetime
import uuid
from typing import Callable
from collections import defaultdict
from typing import Callable
import sshpubkeys
from django.conf import settings
@@ -956,7 +956,10 @@ class User(AuthMixin, SourceMixin, TokenMixin, RoleMixin, MFAMixin, LabeledMixin
@property
def receive_backends(self):
return self.user_msg_subscription.receive_backends
try:
return self.user_msg_subscription.receive_backends
except:
return []
@property
def is_otp_secret_key_bound(self):