Skip to content

Commit

Permalink
only get distinct billing accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Scilly-guy committed Jan 24, 2025
1 parent 2c2356e commit 1b719b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion billing/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,6 @@ def get_billing_accounts_suitable_for_booking(user, booking_end):
q = BillingAccount.objects.filter(
Q(owner=user) | Q(members=user, billingaccountmember__can_make_bookings=True),
~Q(approved_at=None),
)
).distinct()

return q

0 comments on commit 1b719b3

Please sign in to comment.