Skip to content

Commit 9210234

Browse files
authored
Merge pull request #96 from artemgordinskiy/main
Support non-integer primary keys in account models
2 parents 7f130a1 + e49b650 commit 9210234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/django_paddle_billing/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def from_paddle_data(cls, data, occurred_at=None) -> tuple["Subscription | None"
547547
pass
548548

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

0 commit comments

Comments
 (0)