diff --git a/aleksis/apps/paweljong/models.py b/aleksis/apps/paweljong/models.py index e36ee4f3547c697c44b3155d8d9824a1980bac7a..f59a76967f630403e988294ea06b03952741ca56 100644 --- a/aleksis/apps/paweljong/models.py +++ b/aleksis/apps/paweljong/models.py @@ -1,4 +1,5 @@ from datetime import datetime +from decimal import Decimal from django.contrib.contenttypes.models import ContentType from django.db import models @@ -310,7 +311,7 @@ class EventRegistration(ExtensibleModel): yield PurchasedItem( name=self.event.display_name, quantity=1, - price=self.event.cost, + price=Decimal(self.event.cost), currency="EUR", sku="", tax_rate=7,