Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use User model not string from settings
Michał Ociepka2d1f37a3c84e
diff --git a/saleor/order/models.py b/saleor/order/models.pyindex 690ac248d5..8640daf689 100644--- a/saleor/order/models.py+++ b/saleor/order/models.py@@ -1,5 +1,6 @@from __future__ import unicode_literalsfrom decimal import Decimal+from uuid import uuid4from django.conf import settingsfrom django.core.urlresolvers import reverse@@ -15,12 +16,11 @@ from payments import PurchasedItemfrom payments.models import BasePaymentfrom prices import Pricefrom satchless.item import ItemSet, ItemLine-from uuid import uuid4from ..communication.mail import send_emailfrom ..core.utils import build_absolute_urifrom ..product.models import Product-from ..userprofile.models import Address+from ..userprofile.models import Address, User@python_2_unicode_compatible@@ -46,7 +46,7 @@ class Order(models.Model, ItemSet):pgettext_lazy('Order field', 'last status change'),default=now, editable=False)user = models.ForeignKey(- settings.AUTH_USER_MODEL, blank=True, null=True, related_name='orders',+ User, blank=True, null=True, related_name='orders',verbose_name=pgettext_lazy('Order field', 'user'))tracking_client_id = models.CharField(max_length=36, blank=True,editable=False)