1
0
mirror of https://gitlab.crans.org/bde/nk20-scripts synced 2025-06-29 09:50:54 +02:00

🐛 Last report date is a datetime, not a date

This commit is contained in:
Yohann D'ANELLO
2020-08-09 15:53:47 +02:00
parent 53098f8adc
commit 2495128755
2 changed files with 3 additions and 3 deletions

View File

@ -132,7 +132,7 @@ class Command(ImportCommand):
"email_confirmed": True,
"promotion": MAP_IDBDE_PROMOTION[row["idbde"]]["promo"],
"report_frequency": row["report_period"],
"last_report": make_aware(row["previous_report_date"]).date(),
"last_report": make_aware(row["previous_report_date"]),
}
note_dict["created_at"] = make_aware(MAP_IDBDE_PROMOTION[row["idbde"]]["created_at"])
note_dict["polymorphic_ctype"] = note_user_type