Verified Commit a43f5fc8 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix registration payment object migration values

parent ba5fa057
......@@ -22,8 +22,9 @@ class Migration(migrations.Migration):
amount=reg.event.price,
paid_by=reg.member,
processing_date=reg.event.start,
notes=f'Event registration {reg.event}. '
f'Registration: {reg}'
notes=f'Event registration {reg.event.title_en}'
f'{reg.event.start}. '
f'Registration: {reg.date}'
)
reg.save()
......
......@@ -257,8 +257,9 @@ def update_registration_by_organiser(registration, member, data):
registration.payment = Payment.objects.create(
amount=registration.event.price,
paid_by=registration.member,
notes=(f'Event registration {registration.event.title_en}. '
f'Registration date: {registration.date}'),
notes=(f'Event registration {registration.event.title_en}'
f'{registration.event.start}. '
f'Registration date: {registration.date}.'),
processed_by=member,
type=data['payment']['type']
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment