diff --git a/management/commands/import_nk15.py b/management/commands/import_nk15.py index 7b8e7de..b036667 100644 --- a/management/commands/import_nk15.py +++ b/management/commands/import_nk15.py @@ -18,7 +18,7 @@ from django.contrib.auth.models import User from note.models import Note, NoteSpecial, NoteUser, NoteClub from note.models import Alias from note.models import Transaction, TransactionTemplate,\ - TemplateCategory, TemplateTransaction, MembershipTransaction + TemplateCategory, RecurrentTransaction, MembershipTransaction from member.models import Profile, Club, Membership """ @@ -185,7 +185,7 @@ def import_transaction(cur, map_idbde): if created: cat.save() obj_dict["category"] = cat - transac = TemplateTransaction.objects.create(**obj_dict) + transac = RecurrentTransaction.objects.create(**obj_dict) transac.save() elif row["type"] == "adhésion": print("adhesion not supported yet")