Skip to content

Commit

Permalink
Merge pull request #96 from artemgordinskiy/main
Browse files Browse the repository at this point in the history
Support non-integer primary keys in account models
  • Loading branch information
bgervan authored Aug 4, 2024
2 parents 7f130a1 + e49b650 commit 9210234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/django_paddle_billing/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ def from_paddle_data(cls, data, occurred_at=None) -> tuple["Subscription | None"
pass

if account_id is not None:
if not get_account_model().objects.filter(pk=int(account_id)).exists():
if not get_account_model().objects.filter(pk=account_id).exists():
error = f"Subscription: Account with id: {account_id} does not exist"
return None, False, error

Expand Down

0 comments on commit 9210234

Please sign in to comment.