Переписывание модели
This commit is contained in:
1 parent
c051543532
commit
7ca95da216
2 files changed
+2
-1
No files matched your search
@@ -64,7 +64,7 @@ class CustomAuth(ModelBackend):
|
||||
if status_code==200:
|
||||
# try:
|
||||
|
||||
user = DictEmployee.objects.using('user_directory').get(login=username)
|
||||
user = DictEmployee.objects.get(login=username)
|
||||
# print(user)
|
||||
|
||||
if user.deleted!=1:
|
||||
|
||||
Reference in new issue
Block a user