From 83d77b8ecd20ac1ba7320c861f9a5c81eef9ef95 Mon Sep 17 00:00:00 2001 From: Jacob Rief Date: Thu, 30 Apr 2020 14:22:43 +0200 Subject: [PATCH] On Customer model set related name back to customer --- shop/models/customer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shop/models/customer.py b/shop/models/customer.py index a2bcb9f31..3376a76ca 100644 --- a/shop/models/customer.py +++ b/shop/models/customer.py @@ -193,6 +193,7 @@ class BaseCustomer(with_metaclass(deferred.ForeignKeyBuilder, models.Model)): settings.AUTH_USER_MODEL, on_delete=models.CASCADE, primary_key=True, + related_name='customer', ) recognized = ChoiceEnumField(