Skip to content

Commit bacab51

Browse files
style: Fix formatting issues detected by ruff format
1 parent 510c484 commit bacab51

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

promo_code/user/views.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,9 @@ def get_queryset(self):
152152
target__country__iexact=user_country,
153153
)
154154

155-
q_country_target_not_set_or_empty = (
156-
~django.db.models.Q(target__has_key='country')
157-
| django.db.models.Q(target__country__isnull=True)
158-
)
155+
q_country_target_not_set_or_empty = ~django.db.models.Q(
156+
target__has_key='country',
157+
) | django.db.models.Q(target__country__isnull=True)
159158
q_user_meets_country_target = (
160159
q_country_target_matches | q_country_target_not_set_or_empty
161160
)

0 commit comments

Comments
 (0)