Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Make app independent of `userprofile` app

Adam Bogdal0f69ebd8db32
diff --git a/saleor/registration/forms.py b/saleor/registration/forms.py
index ff27bf3ccc..af345e2d15 100644
--- a/saleor/registration/forms.py
+++ b/saleor/registration/forms.py
@@ -5,7 +5,7 @@ from django.contrib.auth import authenticate, get_user_model
from django.contrib.auth.forms import AuthenticationForm, SetPasswordForm
from django.utils.translation import pgettext_lazy, ugettext
-from ..userprofile.models import User
+User = get_user_model()
from .models import (
EmailConfirmationRequest,
diff --git a/saleor/registration/models.py b/saleor/registration/models.py
index 26d7c2ef6d..71a2becdac 100644
--- a/saleor/registration/models.py
+++ b/saleor/registration/models.py
@@ -2,13 +2,13 @@ from __future__ import unicode_literals
from datetime import timedelta
from django.db import models
-from django.contrib.auth import authenticate
+from django.contrib.auth import authenticate, get_user_model
from django.conf import settings
from django.core.urlresolvers import reverse
from django.utils import timezone
from django.utils.crypto import get_random_string
-from ..userprofile.models import User
+User = get_user_model()
now = timezone.now