Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Check existence of the user with appropriate email address
Adam Bogdałd4c7648b5f77
diff --git a/saleor/product/management/commands/populatedb.py b/saleor/product/management/commands/populatedb.pyindex 3befce6240..0d6a4d27c9 100644--- a/saleor/product/management/commands/populatedb.py+++ b/saleor/product/management/commands/populatedb.py@@ -28,8 +28,8 @@ class Command(BaseCommand):if options['createsuperuser']:credentials = {'email': '[email protected]', 'password': 'admin'}user, created = User.objects.get_or_create(- email=credentials['email'],- is_active=True, is_staff=True, is_superuser=True)+ email=credentials['email'], defaults={+ 'is_active': True, 'is_staff': True, 'is_superuser': True})if created:user.set_password(credentials['password'])user.save()