Skip to content

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

Fix code formatting

akjanik4fe61e754086
diff --git a/saleor/checkout/forms.py b/saleor/checkout/forms.py
index 8a27620073..7cdbb7cb0f 100644
--- a/saleor/checkout/forms.py
+++ b/saleor/checkout/forms.py
@@ -118,8 +118,8 @@ class AnonymousUserBillingForm(forms.Form):
class NoteForm(forms.Form):
""" Form to add a note to an order as it is
created for shop staff to see """
- note = forms.CharField(max_length=250, required=False, strip=True,
- label=False)
+ note = forms.CharField(
+ max_length=250, required=False, strip=True, label=False)
note.widget = forms.Textarea({'rows': 3})
def __init__(self, *args, **kwargs):
diff --git a/saleor/dashboard/order/forms.py b/saleor/dashboard/order/forms.py
index 3dcdf5fc2e..13400933b8 100644
--- a/saleor/dashboard/order/forms.py
+++ b/saleor/dashboard/order/forms.py
@@ -38,10 +38,11 @@ class OrderNoteForm(forms.ModelForm):
'Customer can see this note')}
def send_confirmation_email(self):
- email = self.instance.order.get_user_current_email()
+ order = self.instance.order
+ email = order.get_user_current_email()
url = build_absolute_uri(
reverse(
- 'order:details', kwargs={'token': self.instance.order.token}))
+ 'order:details', kwargs={'token': order.token}))
send_note_confirmation.delay(email, url)