diff --git a/apps/payment/models.py b/apps/payment/models.py index 827332ac..99bc64cf 100644 --- a/apps/payment/models.py +++ b/apps/payment/models.py @@ -1,4 +1,4 @@ -from datetime import timedelta, date +from datetime import timedelta, date, datetime from decimal import Decimal import arrow @@ -147,6 +147,8 @@ class Payment(PolymorphicModel): camp_start = date(now().year, 6, 1) camp_end = date(now().year, 8, 31) date_start = date_start or now().date() + if isinstance(date_start, datetime): + date_start = date_start.date() if is_camp: if date_start < camp_start: date_start = camp_start