The note account must be active in order to have access to the Rest Framework API

This commit is contained in:
Yohann D'ANELLO 2020-10-20 10:30:38 +02:00
parent 84be9d0062
commit 654492f9e9
1 changed files with 2 additions and 1 deletions

View File

@ -114,9 +114,10 @@ class Command(ImportCommand):
else: else:
passwd_nk15 = '' passwd_nk15 = ''
# Note account should have no password # Note account should have no password and be active
if int(row["idbde"]) == 3508: if int(row["idbde"]) == 3508:
passwd_nk15 = "ipbased$127.0.0.1" passwd_nk15 = "ipbased$127.0.0.1"
row["bloque"] = False
if row["idbde"] not in MAP_IDBDE_PROMOTION: if row["idbde"] not in MAP_IDBDE_PROMOTION:
# NK12 bug. Applying default values # NK12 bug. Applying default values