From bac22dcbac9f3ddb981a5e63629a77ca2cb8f8ff Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 7 Sep 2020 01:06:22 +0200 Subject: [PATCH] Add __str__ to models, remove null=True in CharField and TextField --- management/commands/import_transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/commands/import_transaction.py b/management/commands/import_transaction.py index 5c1192c..c29d5bd 100644 --- a/management/commands/import_transaction.py +++ b/management/commands/import_transaction.py @@ -214,7 +214,7 @@ class Command(ImportCommand): "amount": row["montant"], "created_at": date, "destination_alias": "", - "invalidity_reason": None, + "invalidity_reason": "", "quantity": row["quantite"], "reason": row["description"], "source_alias": "",