Skip to content

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

Fix bad formatting on a few gettext

NyanKiyoshi69175b5fdc42
diff --git a/saleor/dashboard/customer/views.py b/saleor/dashboard/customer/views.py
index 9737897429..32e792434f 100644
--- a/saleor/dashboard/customer/views.py
+++ b/saleor/dashboard/customer/views.py
@@ -60,7 +60,7 @@ def customer_create(request):
if form.is_valid():
form.save()
msg = pgettext_lazy(
- 'Dashboard message', 'Added customer %s' % customer)
+ 'Dashboard message', 'Added customer %s') % customer
send_set_password_email(customer)
messages.success(request, msg)
return redirect('dashboard:customer-details', pk=customer.pk)
@@ -76,7 +76,7 @@ def customer_edit(request, pk=None):
if form.is_valid():
form.save()
msg = pgettext_lazy(
- 'Dashboard message', 'Updated customer %s' % customer)
+ 'Dashboard message', 'Updated customer %s') % customer
messages.success(request, msg)
return redirect('dashboard:customer-details', pk=customer.pk)
ctx = {'form': form, 'customer': customer}