mirror of
https://gitlab.crans.org/bde/nk20-scripts
synced 2025-06-29 09:50:54 +02:00
Prevent also club owners when the note balance is negative
This commit is contained in:
@ -102,7 +102,7 @@ class Command(ImportCommand):
|
||||
"pk": pk_note,
|
||||
"balance": row['solde'],
|
||||
"last_negative": None,
|
||||
"is_active": True,
|
||||
"is_active": not row["bloque"],
|
||||
"display_image": "pic/default.png",
|
||||
}
|
||||
if row["last_negatif"] is not None:
|
||||
@ -126,7 +126,7 @@ class Command(ImportCommand):
|
||||
"first_name": row["prenom"],
|
||||
"last_name": row["nom"],
|
||||
"email": row["mail"],
|
||||
"is_active": True, # temporary
|
||||
"is_active": not row["bloque"],
|
||||
"date_joined": make_aware(MAP_IDBDE_PROMOTION[row["idbde"]]["created_at"]),
|
||||
}
|
||||
profile_dict = {
|
||||
|
Reference in New Issue
Block a user