Skip to content

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

Correction of some English errors

NyanKiyoshi9e9c9798f9c0
diff --git a/saleor/core/fields.py b/saleor/core/fields.py
index ebedaa4a9b..07b3d1f358 100644
--- a/saleor/core/fields.py
+++ b/saleor/core/fields.py
@@ -7,8 +7,8 @@ from django.utils.translation import gettext_lazy
class SanitizedJSONField(JSONField):
description = gettext_lazy(
- "A JSON field that runs a giving sanitization method "
- "before saving into the database"
+ "A JSON field that runs a given sanitization method "
+ "before saving into the database."
)
def __init__(self, *args, sanitizer: Callable[[dict], dict], **kwargs):
diff --git a/saleor/page/migrations/0008_raw_html_to_json.py b/saleor/page/migrations/0008_raw_html_to_json.py
index 6c89724393..90b9708337 100644
--- a/saleor/page/migrations/0008_raw_html_to_json.py
+++ b/saleor/page/migrations/0008_raw_html_to_json.py
@@ -15,7 +15,7 @@ def convert_pages_html_to_json(apps, schema_editor):
content_json = page.content_json
content_raw = json_content_to_raw_text(content_json)
- # Override the the JSON content if there was nothing in it
+ # Override the JSON content if there was nothing in it
if not content_raw.strip():
page.description_json = html_to_draftjs(page.content)
page.save(update_fields=["content_json"])
@@ -27,7 +27,7 @@ def convert_pages_html_to_json(apps, schema_editor):
content_json = translation.content_json
content_raw = json_content_to_raw_text(content_json)
- # Override the the JSON content if there was nothing in it
+ # Override the JSON content if there was nothing in it
if not content_raw.strip():
translation.description_json = html_to_draftjs(translation.content)
translation.save(update_fields=["content_json"])
diff --git a/saleor/product/migrations/0096_raw_html_to_json.py b/saleor/product/migrations/0096_raw_html_to_json.py
index 5caa275f91..1a8225ae62 100644
--- a/saleor/product/migrations/0096_raw_html_to_json.py
+++ b/saleor/product/migrations/0096_raw_html_to_json.py
@@ -15,7 +15,7 @@ def convert_products_html_to_json(apps, schema_editor):
description_json = product.description_json
description_raw = json_content_to_raw_text(description_json)
- # Override the the JSON description if there was nothing in it
+ # Override the JSON description if there was nothing in it
if not description_raw.strip():
product.description_json = html_to_draftjs(product.description)
product.save(update_fields=["description_json"])
@@ -27,7 +27,7 @@ def convert_products_html_to_json(apps, schema_editor):
description_json = translation.description_json
description_raw = json_content_to_raw_text(description_json)
- # Override the the JSON description if there was nothing in it
+ # Override the JSON description if there was nothing in it
if not description_raw:
translation.description_json = html_to_draftjs(translation.description)
translation.save(update_fields=["description_json"])