Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 1, 2024
1 parent f6e6776 commit a11bbe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tilavarauspalvelu/admin/payment_merchant/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Meta:

def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
instance: PaymentMerchant | None = kwargs.get("instance", None)
instance: PaymentMerchant | None = kwargs.get("instance")
if instance and instance.id:
merchant_info = VerkkokauppaAPIClient.get_merchant(merchant_uuid=instance.id)
if merchant_info is None:
Expand Down
2 changes: 1 addition & 1 deletion tilavarauspalvelu/admin/payment_order/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Meta:
def __init__(self, *args, **kwargs) -> None:
"""Add reservation and reservation unit to the reservation field help text."""
super().__init__(*args, **kwargs)
payment_order: PaymentOrder | None = kwargs.get("instance", None)
payment_order: PaymentOrder | None = kwargs.get("instance")
if payment_order and payment_order.id and payment_order.reservation:
self.fields["reservation"].help_text += (
"<br>" + _("Reservation") + f": {payment_order.reservation.id}"
Expand Down

0 comments on commit a11bbe1

Please sign in to comment.