Skip to content

Commit

Permalink
Betlinginfo: Kald format_html ifm Gratis
Browse files Browse the repository at this point in the history
  • Loading branch information
mhewel committed Aug 29, 2023
1 parent c01490d commit c88967b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion members/models/activityparticipant.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ def payment_info(self, format_as_html: bool):

# Checking for price = 0 before checking for payment
if self.activity.price_in_dkk == 0:
return f"{html_good_pre}Gratis.{html_post} "
result_string = f"{html_good_pre}Gratis.{html_post} "
if format_as_html:
return format_html(result_string)
else:
return result_string

try:
payment = members.models.payment.Payment.objects.get(
Expand Down

0 comments on commit c88967b

Please sign in to comment.