Skip to content

Commit 6cab5a0

Browse files
committed
Handle custom User model without id column
1 parent 3252641 commit 6cab5a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allauth/account/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def save(self, **kwargs):
425425

426426
# send the password reset email
427427
path = reverse("account_reset_password_from_key",
428-
kwargs=dict(uidb36=int_to_base36(user.id),
428+
kwargs=dict(uidb36=int_to_base36(user.pk),
429429
key=temp_key))
430430
url = '%s://%s%s' % (app_settings.DEFAULT_HTTP_PROTOCOL,
431431
current_site.domain,

0 commit comments

Comments
 (0)