From 139d577e77a944e2949a890654a4bb41274eb963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Ml=C3=A1dek?= Date: Wed, 14 Apr 2021 02:51:36 +0200 Subject: [PATCH] fix https://github.com/macropin/django-registration/issues/413 (#414) Co-authored-by: Michal Mladek --- registration/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/registration/models.py b/registration/models.py index 56c2efc..f045831 100644 --- a/registration/models.py +++ b/registration/models.py @@ -306,6 +306,8 @@ class RegistrationProfile(models.Model): account registration and activation. """ + default_auto_field = 'django.db.models.AutoField' + user = models.OneToOneField( UserModelString(), on_delete=models.CASCADE,