Rename TemplateTransaction into RecurrentTransaction

This commit is contained in:
Maxime Bombar 2020-03-22 13:24:54 -04:00
parent be8aa44eb6
commit 2571477bb4
1 changed files with 2 additions and 2 deletions

View File

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