Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
asadali145 committed Aug 23, 2024
1 parent 2eb3cae commit 4cfadad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ecommerce/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ def display_taxes(user):
return (
settings.FEATURES.get("ENABLE_TAXES_DISPLAY", False)
and user.is_authenticated
and user.legal_address.country
in TaxRate.objects.filter(active=True).values_list("country_code", flat=True)
and TaxRate.objects.filter(
active=True, country_code=user.legal_address.country
).exists()
)


Expand Down

0 comments on commit 4cfadad

Please sign in to comment.