Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove remnants of DraftJS (#18854)
Patryk Zawadzki368a33e30681
diff --git a/pyproject.toml b/pyproject.tomlindex 403c7d2843..f43188a9a1 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -34,7 +34,6 @@ dependencies = ["django-mptt>=0,<1","django-phonenumber-field>=4,<9","django-stubs-ext>=5.1.3,<6",- "draftjs-sanitizer>=1.0.0,<2","faker>=26.0.0,<27.0","google-cloud-pubsub>=1.7,<3.0","google-cloud-storage>=2.0.0,<3",@@ -42,7 +41,6 @@ dependencies = ["graphene<3.0","graphql-core>=2.3.2,<3","graphql-relay>=2.0.1,<3",- "html-to-draftjs>=1.0.1,<2","lxml>=4.9.3,<5","markdown>=3.1.1,<4","measurement>=3.2.2,<4",diff --git a/saleor/core/utils/draftjs.py b/saleor/core/utils/draftjs.pydeleted file mode 100644index c29e9fb601..0000000000--- a/saleor/core/utils/draftjs.py+++ /dev/null@@ -1,13 +0,0 @@-def json_content_to_raw_text(content: dict[str, dict], sep: str = "\n") -> str:- """Convert DraftJS JSON content to plain text."""-- if not isinstance(content, dict) or "blocks" not in content:- return ""-- blocks = []- for block in content["blocks"]:- block_text = block.get("text", None).strip()- if block_text is not None:- blocks.append(block_text)-- return sep.join(blocks)diff --git a/saleor/core/utils/json_serializer.py b/saleor/core/utils/json_serializer.pyindex b58ccec901..68cdaad44c 100644--- a/saleor/core/utils/json_serializer.py+++ b/saleor/core/utils/json_serializer.py@@ -1,6 +1,5 @@from django.core.serializers.json import DjangoJSONEncoderfrom django.core.serializers.json import Serializer as JsonSerializer-from draftjs_sanitizer import SafeJSONEncoderfrom measurement.measures import Weightfrom prices import Money@@ -21,11 +20,3 @@ class CustomJsonEncoder(DjangoJSONEncoder):if isinstance(obj, Weight):return f"{obj.value}:{obj.unit}"return super().default(obj)---class HTMLSafeJSON(SafeJSONEncoder, DjangoJSONEncoder):- """Escape dangerous characters from JSON.-- It is used for integrating JSON into HTML content in addition to- serializing Django objects.- """diff --git a/saleor/page/migrations/0008_raw_html_to_json.py b/saleor/page/migrations/0008_raw_html_to_json.pyindex 7728af2f29..01060269de 100644--- a/saleor/page/migrations/0008_raw_html_to_json.py+++ b/saleor/page/migrations/0008_raw_html_to_json.py@@ -1,72 +1,19 @@# Generated by Django 2.2.3 on 2019-07-15 07:51-from django.db import migrations-from draftjs_sanitizer import clean_draft_js-from html_to_draftjs import html_to_draftjs--from ...core.db.fields import SanitizedJSONField-from ...core.utils.draftjs import json_content_to_raw_text---def convert_pages_html_to_json(apps, schema_editor):- Page = apps.get_model("page", "Page")- qs = Page.objects.all()-- for page in qs:- content_json = page.content_json- content_raw = json_content_to_raw_text(content_json)-- # 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"])-- PageTranslation = apps.get_model("page", "PageTranslation")- qs = PageTranslation.objects.all()-- for translation in qs:- content_json = translation.content_json- content_raw = json_content_to_raw_text(content_json)-- # 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"])---def sanitize_pages_json(apps, schema_editor):- Page = apps.get_model("page", "Page")- qs = Page.objects.all()-- for page in qs:- page.content_json = clean_draft_js(page.content_json)- page.save(update_fields=["content_json"])-- PageTranslation = apps.get_model("page", "PageTranslation")- qs = PageTranslation.objects.all()-- for page in qs:- page.content_json = clean_draft_js(page.content_json)- page.save(update_fields=["content_json"])+from django.db import migrations, modelsclass Migration(migrations.Migration):dependencies = [("page", "0007_auto_20190225_0252")]operations = [- migrations.RunPython(convert_pages_html_to_json),- migrations.RunPython(sanitize_pages_json),migrations.AlterField(model_name="page",name="content_json",- field=SanitizedJSONField(- blank=True, default=dict, sanitizer=clean_draft_js- ),+ field=models.JSONField(blank=True, default=dict),),migrations.AlterField(model_name="pagetranslation",name="content_json",- field=SanitizedJSONField(- blank=True, default=dict, sanitizer=clean_draft_js- ),+ field=models.JSONField(blank=True, default=dict),),]diff --git a/saleor/page/migrations/0015_migrate_from_draftjs_to_editorjs_format.py b/saleor/page/migrations/0015_migrate_from_draftjs_to_editorjs_format.pyindex f05bf41e54..38fc8abd5b 100644--- a/saleor/page/migrations/0015_migrate_from_draftjs_to_editorjs_format.py+++ b/saleor/page/migrations/0015_migrate_from_draftjs_to_editorjs_format.py@@ -1,186 +1,11 @@# Generated by Django 3.1 on 2020-11-06 08:44-from collections import defaultdict-from django.db import migrations-LEVELS_MAPPING = {"one": 1, "two": 2, "three": 3}-TAG_MAPPING = {- "BOLD": "b",- "ITALIC": "i",- "STRIKETHROUGH": "s",- "CODE": "code",-}---def parse_to_editorjs(data):- blocks = data.get("blocks")- entity_map = data.get("entityMap")-- if not blocks:- return data-- editor_js_blocks = []- list_data = {}- for block in blocks:- # if block doesn't have key it means it isn't in draft.js format- if "key" not in block:- return data- key = block["type"]- inline_style_ranges = block["inlineStyleRanges"]- entity_ranges = block["entityRanges"]-- text = block["text"]- text = parse_text(text, inline_style_ranges, entity_ranges, entity_map)-- type, data = get_block_data(text, key, list_data, editor_js_blocks)-- if not type:- continue-- new_block = {- "type": type,- "data": data,- }- editor_js_blocks.append(new_block)-- return {"blocks": editor_js_blocks}---def parse_text(text, style_ranges, entity_ranges, entity_map):- operations = defaultdict(list)- prepare_operations(operations, style_ranges, entity_map, False)- prepare_operations(operations, entity_ranges, entity_map, True)-- parsed_text = ""- previous_index = 0- # insert html element on specified indexes- for offset, tags in operations.items():- end_index = offset + 1- parsed_text += text[previous_index:end_index]- parsed_text += "".join(tags)- previous_index = offset + 1-- parsed_text += text[previous_index:]-- return parsed_text---def prepare_operations(operations, ranges, entity_map, entity):- """Prepare operations dict defining operations on specific indexes.-- Data format:- - key: index value- - value: list of html elements that should be insert into text on specific index-- """- for range_date in ranges:- tag = "a" if entity else TAG_MAPPING[range_date["style"]]- offset = range_date["offset"]- length = offset + range_date["length"] - 1- if entity:- entity_key = str(range_date["key"])- href = entity_map[entity_key]["data"]["url"]- start_tag = f'{tag} href="{href}"'- else:- start_tag = tag if tag != "code" else tag + ' class="inline-code"'- operations[offset - 1].append(f"<{start_tag}>")- operations[length] = [f"</{tag}>"] + operations[length]---def get_block_data(text, key, list_data, editor_js_blocks):- """Prepare editorjs blocks based on draftjs blocks.-- Draftjs types are replaces with corresponding editorjs types.-- List must be handled specially. In draftjs every list item is in separate block,- but in editorjs all list items are in a list in one block.- """- # if the list_data is not empty and list elements ended, append list block- if list_data and "list-item" not in key:- list_block = {"type": "list", "data": list_data}- editor_js_blocks.append(list_block)- list_data = {}-- if "list-item" in key:- style = key.split("-")[0]- # if the list data is not empty and list style is the same as current block,- # just append list element to the list data- if list_data and list_data["style"] == style:- list_data["items"].append(text)- else:- # if the list data is not empty it means that list style has been changed,- # in this situation create new block from existing list data and- # override the list data with the new data- if list_data:- list_block = {"type": "list", "data": list_data}- editor_js_blocks.append(list_block)- list_data = {"style": style, "items": [text]}- return None, None-- data = {"text": text}- if key.startswith("header"):- level = LEVELS_MAPPING[key.split("-")[1]]- type = "header"- data["level"] = level- elif key == "blockquote":- type = "quote"- data["alignment"] = "left"- elif key == "code-block":- type = "code"- else:- type = "paragraph"-- return type, data---def migrate_draftjs_to_editorjs_format(apps, schema_editor):- Page = apps.get_model("page", "Page")- PageTranslation = apps.get_model("page", "PageTranslation")-- for model in [Page, PageTranslation]:- migrate_model_field_data(model)---def migrate_model_field_data(Model):- queryset = Model.objects.all().order_by("pk")- for batch_pks in queryset_in_batches(queryset):- instances = []- batch = Model.objects.filter(pk__in=batch_pks)- for instance in batch:- if instance.content_json:- instance.content_json = parse_to_editorjs(instance.content_json)- instances.append(instance)-- Model.objects.bulk_update(instances, ["content_json"])---def queryset_in_batches(queryset):- """Slice a queryset into batches.-- Input queryset should be sorted be pk.- """- start_pk = 0-- while True:- qs = queryset.order_by("pk").filter(pk__gt=start_pk)[:2000]- pks = list(qs.values_list("pk", flat=True))-- if not pks:- break-- yield pks-- start_pk = pks[-1]-class Migration(migrations.Migration):dependencies = [("page", "0014_add_metadata"),]- operations = [- migrations.RunPython(- migrate_draftjs_to_editorjs_format, migrations.RunPython.noop- )- ]+ operations = []diff --git a/saleor/product/migrations/0096_raw_html_to_json.py b/saleor/product/migrations/0096_raw_html_to_json.pyindex 7474077a07..a1efd68868 100644--- a/saleor/product/migrations/0096_raw_html_to_json.py+++ b/saleor/product/migrations/0096_raw_html_to_json.py@@ -1,72 +1,19 @@# Generated by Django 2.2.3 on 2019-07-15 07:47-from django.db import migrations-from draftjs_sanitizer import clean_draft_js-from html_to_draftjs import html_to_draftjs--from ...core.db.fields import SanitizedJSONField-from ...core.utils.draftjs import json_content_to_raw_text---def convert_products_html_to_json(apps, schema_editor):- Product = apps.get_model("product", "Product")- qs = Product.objects.all()-- for product in qs:- description_json = product.description_json- description_raw = json_content_to_raw_text(description_json)-- # 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"])-- ProductTranslation = apps.get_model("product", "ProductTranslation")- qs = ProductTranslation.objects.all()-- for translation in qs:- description_json = translation.description_json- description_raw = json_content_to_raw_text(description_json)-- # 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"])---def sanitize_descriptions_json(apps, schema_editor):- Product = apps.get_model("product", "Product")- qs = Product.objects.all()-- for product in qs:- product.description_json = clean_draft_js(product.description_json)- product.save(update_fields=["description_json"])-- ProductTranslation = apps.get_model("product", "ProductTranslation")- qs = ProductTranslation.objects.all()-- for product in qs:- product.description_json = clean_draft_js(product.description_json)- product.save(update_fields=["description_json"])+from django.db import migrations, modelsclass Migration(migrations.Migration):dependencies = [("product", "0095_auto_20190618_0842")]operations = [- migrations.RunPython(convert_products_html_to_json),- migrations.RunPython(sanitize_descriptions_json),migrations.AlterField(model_name="product",name="description_json",- field=SanitizedJSONField(- blank=True, default=dict, sanitizer=clean_draft_js- ),+ field=models.JSONField(blank=True, default=dict),),migrations.AlterField(model_name="producttranslation",name="description_json",- field=SanitizedJSONField(- blank=True, default=dict, sanitizer=clean_draft_js- ),+ field=models.JSONField(blank=True, default=dict),),]diff --git a/saleor/product/migrations/0130_create_product_description_search_vector.py b/saleor/product/migrations/0130_create_product_description_search_vector.pyindex 7b5d0ae077..984dd42f8f 100644--- a/saleor/product/migrations/0130_create_product_description_search_vector.py+++ b/saleor/product/migrations/0130_create_product_description_search_vector.py@@ -5,30 +5,6 @@ import django.contrib.postgres.searchfrom django.db import migrations, models-def parse_draftjs_content_to_string(definitions):- string = ""- blocks = definitions.get("blocks")- if not blocks or not isinstance(blocks, list):- return ""- for block in blocks:- text = block.get("text")- if not text:- continue- string += f"{text} "-- return string---def parse_description_json_field(apps, schema):- Product = apps.get_model("product", "Product")-- for product in Product.objects.iterator():- product.description_plaintext = parse_draftjs_content_to_string(- product.description_json- )- product.save()--class Migration(migrations.Migration):dependencies = [("product", "0129_add_product_types_and_attributes_perm"),@@ -86,8 +62,4 @@ class Migration(migrations.Migration):""",reverse_sql=migrations.RunSQL.noop,),- migrations.RunPython(- parse_description_json_field,- migrations.RunPython.noop,- ),]diff --git a/saleor/product/migrations/0130_migrate_from_draftjs_to_editorjs_format.py b/saleor/product/migrations/0130_migrate_from_draftjs_to_editorjs_format.pyindex 5d5078f01c..8562c618df 100644--- a/saleor/product/migrations/0130_migrate_from_draftjs_to_editorjs_format.py+++ b/saleor/product/migrations/0130_migrate_from_draftjs_to_editorjs_format.py@@ -1,197 +1,11 @@# Generated by Django 3.1 on 2020-11-06 07:13-from collections import defaultdict-from django.db import migrations-LEVELS_MAPPING = {"one": 1, "two": 2, "three": 3}-TAG_MAPPING = {- "BOLD": "b",- "ITALIC": "i",- "STRIKETHROUGH": "s",- "CODE": "code",-}---def parse_to_editorjs(data):- blocks = data.get("blocks")- entity_map = data.get("entityMap")-- if not blocks:- return data-- editor_js_blocks = []- list_data = {}- for block in blocks:- # if block doesn't have key it means it isn't in draft.js format- if "key" not in block:- return data- key = block["type"]- inline_style_ranges = block["inlineStyleRanges"]- entity_ranges = block["entityRanges"]-- text = block["text"]- text = parse_text(text, inline_style_ranges, entity_ranges, entity_map)-- type, data = get_block_data(text, key, list_data, editor_js_blocks)-- if not type:- continue-- new_block = {- "type": type,- "data": data,- }- editor_js_blocks.append(new_block)-- return {"blocks": editor_js_blocks}---def parse_text(text, style_ranges, entity_ranges, entity_map):- operations = defaultdict(list)- prepare_operations(operations, style_ranges, entity_map, False)- prepare_operations(operations, entity_ranges, entity_map, True)-- parsed_text = ""- previous_index = 0- # insert html element on specified indexes- for offset, tags in operations.items():- end_index = offset + 1- parsed_text += text[previous_index:end_index]- parsed_text += "".join(tags)- previous_index = offset + 1-- parsed_text += text[previous_index:]-- return parsed_text---def prepare_operations(operations, ranges, entity_map, entity):- """Prepare operations dict defining operations on specific indexes.-- Data format:- - key: index value- - value: list of html elements that should be insert into text on specific index-- """- for range_date in ranges:- tag = "a" if entity else TAG_MAPPING[range_date["style"]]- offset = range_date["offset"]- length = offset + range_date["length"] - 1- if entity:- entity_key = str(range_date["key"])- href = entity_map[entity_key]["data"]["url"]- start_tag = f'{tag} href="{href}"'- else:- start_tag = tag if tag != "code" else tag + ' class="inline-code"'- operations[offset - 1].append(f"<{start_tag}>")- operations[length] = [f"</{tag}>"] + operations[length]---def get_block_data(text, key, list_data, editor_js_blocks):- """Prepare editorjs blocks based on draftjs blocks.-- Draftjs types are replaces with corresponding editorjs types.-- List must be handled specially. In draftjs every list item is in separate block,- but in editorjs all list items are in a list in one block.- """- # if the list_data is not empty and list elements ended, append list block- if list_data and "list-item" not in key:- list_block = {"type": "list", "data": list_data}- editor_js_blocks.append(list_block)- list_data = {}-- if "list-item" in key:- style = key.split("-")[0]- # if the list data is not empty and list style is the same as current block,- # just append list element to the list data- if list_data and list_data["style"] == style:- list_data["items"].append(text)- else:- # if list data is not empty it means that list style has been changed,- # in this situation create new block from existing list data and- # override the list data with the new data- if list_data:- list_block = {"type": "list", "data": list_data}- editor_js_blocks.append(list_block)- list_data = {"style": style, "items": [text]}- return None, None-- data = {"text": text}- if key.startswith("header"):- level = LEVELS_MAPPING[key.split("-")[1]]- type = "header"- data["level"] = level- elif key == "blockquote":- type = "quote"- data["alignment"] = "left"- elif key == "code-block":- type = "code"- else:- type = "paragraph"-- return type, data---def migrate_draftjs_to_editorjs_format(apps, schema_editor):- Category = apps.get_model("product", "Category")- CategoryTranslation = apps.get_model("product", "CategoryTranslation")- Product = apps.get_model("product", "Product")- ProductTranslation = apps.get_model("product", "ProductTranslation")- Collection = apps.get_model("product", "Collection")- CollectionTranslation = apps.get_model("product", "CollectionTranslation")-- for model in [- Category,- CategoryTranslation,- Product,- ProductTranslation,- Collection,- CollectionTranslation,- ]:- migrate_model_field_data(model)---def migrate_model_field_data(Model):- queryset = Model.objects.all().order_by("pk")- for batch_pks in queryset_in_batches(queryset):- instances = []- batch = Model.objects.filter(pk__in=batch_pks)- for instance in batch:- if instance.description_json:- instance.description_json = parse_to_editorjs(instance.description_json)- instances.append(instance)-- Model.objects.bulk_update(instances, ["description_json"])---def queryset_in_batches(queryset):- """Slice a queryset into batches.-- Input queryset should be sorted be pk.- """- start_pk = 0-- while True:- qs = queryset.order_by("pk").filter(pk__gt=start_pk)[:2000]- pks = list(qs.values_list("pk", flat=True))-- if not pks:- break-- yield pks-- start_pk = pks[-1]-class Migration(migrations.Migration):dependencies = [("product", "0131_update_ts_vector_existing_product_name"),]- operations = [- migrations.RunPython(- migrate_draftjs_to_editorjs_format, migrations.RunPython.noop- )- ]+ operations = []diff --git a/saleor/product/migrations/0149_auto_20211004_1636.py b/saleor/product/migrations/0149_auto_20211004_1636.pyindex 44ebf8efc9..d9530d8545 100644--- a/saleor/product/migrations/0149_auto_20211004_1636.py+++ b/saleor/product/migrations/0149_auto_20211004_1636.py@@ -4,32 +4,6 @@ import django.contrib.postgres.indexesfrom django.db import migrations, models-def parse_draftjs_content_to_string(definitions):- string = ""- blocks = definitions.get("blocks")- if not blocks or not isinstance(blocks, list):- return ""- for block in blocks:- text = block.get("text")- if not text:- continue- string += f"{text} "-- return string---def parse_description_json_field(apps, schema):- Category = apps.get_model("product", "Category")-- for category in Category.objects.iterator():- category.description_plaintext = ""- if category.description:- category.description_plaintext = parse_draftjs_content_to_string(- category.description- )- category.save(update_fields=["description_plaintext"])--class Migration(migrations.Migration):dependencies = [("product", "0148_producttype_product_type_search_gin"),@@ -50,8 +24,4 @@ class Migration(migrations.Migration):opclasses=["gin_trgm_ops", "gin_trgm_ops", "gin_trgm_ops"],),),- migrations.RunPython(- parse_description_json_field,- migrations.RunPython.noop,- ),]diff --git a/uv.lock b/uv.lockindex 3ddad07639..37717cbb88 100644--- a/uv.lock+++ b/uv.lock@@ -196,18 +196,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/a9/cf/45fb5261ece3e6b9817d3d82b2f343a505fd58674a92577923bc500bd1aa/bcrypt-4.3.0-cp39-abi3-win_amd64.whl", hash = "sha256:e53e074b120f2877a35cc6c736b8eb161377caae8925c17688bd46ba56daaa5b", size = 152799, upload-time = "2025-02-28T01:23:53.139Z" },]-[[package]]-name = "beautifulsoup4"-version = "4.7.1"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "soupsieve", marker = "platform_python_implementation != 'PyPy'" },-]-sdist = { url = "https://files.pythonhosted.org/packages/80/f2/f6aca7f1b209bb9a7ef069d68813b091c8c3620642b568dac4eb0e507748/beautifulsoup4-4.7.1.tar.gz", hash = "sha256:945065979fb8529dd2f37dbb58f00b661bdbcbebf954f93b32fdf5263ef35348", size = 167065, upload-time = "2019-01-07T00:53:22.191Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/1d/5d/3260694a59df0ec52f8b4883f5d23b130bc237602a1411fa670eae12351e/beautifulsoup4-4.7.1-py3-none-any.whl", hash = "sha256:034740f6cb549b4e932ae1ab975581e6103ac8f942200a0e9759065984391858", size = 94327, upload-time = "2019-01-07T00:53:20.479Z" },-]-[[package]]name = "beautifultable"version = "0.7.0"@@ -803,15 +791,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/e3/26/57c6fb270950d476074c087527a558ccb6f4436657314bfb6cdf484114c4/docker-7.1.0-py3-none-any.whl", hash = "sha256:c96b93b7f0a746f9e77d325bcfb87422a3d8bd4f03136ae8a85b37f1898d5fc0", size = 147774, upload-time = "2024-05-23T11:13:55.01Z" },]-[[package]]-name = "draftjs-sanitizer"-version = "1.0.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "urllib3", marker = "platform_python_implementation != 'PyPy'" },-]-sdist = { url = "https://files.pythonhosted.org/packages/58/6c/ba91295b18cf371cab6e7f93f2117eea802ab8e1e491f78ab1361575d07a/draftjs-sanitizer-1.0.0.tar.gz", hash = "sha256:4603a9296153cd06d5a1d76a45a1ff0295363516af983d8dde28cafc5cd67583", size = 6149, upload-time = "2019-07-18T13:21:30.597Z" }-[[package]]name = "ecdsa"version = "0.19.1"@@ -1135,16 +1114,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" },]-[[package]]-name = "html-to-draftjs"-version = "1.0.1"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "beautifulsoup4", marker = "platform_python_implementation != 'PyPy'" },- { name = "lxml", marker = "platform_python_implementation != 'PyPy'" },-]-sdist = { url = "https://files.pythonhosted.org/packages/84/0f/e6f3d05e4e23fd1e9de9fb84376e65323c8c7a53bbef97ea4e69fbc93ba6/html-to-draftjs-1.0.1.tar.gz", hash = "sha256:2212acf3b063c17b6dc91875f474159e1f730c1a4e5fbf74f9a66250f7040e9a", size = 6656, upload-time = "2019-07-31T05:54:09.426Z" }-[[package]]name = "httptools"version = "0.6.4"@@ -2582,7 +2551,6 @@ dependencies = [{ name = "django-phonenumber-field", marker = "platform_python_implementation != 'PyPy'" },{ name = "django-storages", extra = ["google"], marker = "platform_python_implementation != 'PyPy'" },{ name = "django-stubs-ext", marker = "platform_python_implementation != 'PyPy'" },- { name = "draftjs-sanitizer", marker = "platform_python_implementation != 'PyPy'" },{ name = "faker", marker = "platform_python_implementation != 'PyPy'" },{ name = "google-cloud-pubsub", marker = "platform_python_implementation != 'PyPy'" },{ name = "google-cloud-storage", marker = "platform_python_implementation != 'PyPy'" },@@ -2590,7 +2558,6 @@ dependencies = [{ name = "graphene", marker = "platform_python_implementation != 'PyPy'" },{ name = "graphql-core", marker = "platform_python_implementation != 'PyPy'" },{ name = "graphql-relay", marker = "platform_python_implementation != 'PyPy'" },- { name = "html-to-draftjs", marker = "platform_python_implementation != 'PyPy'" },{ name = "idna", marker = "platform_python_implementation != 'PyPy'" },{ name = "kombu", extra = ["sqs"], marker = "platform_python_implementation != 'PyPy'" },{ name = "lxml", marker = "platform_python_implementation != 'PyPy'" },@@ -2698,7 +2665,6 @@ requires-dist = [{ name = "django-phonenumber-field", specifier = ">=4,<9" },{ name = "django-storages", extras = ["google"], specifier = "~=1.11" },{ name = "django-stubs-ext", specifier = ">=5.1.3,<6" },- { name = "draftjs-sanitizer", specifier = ">=1.0.0,<2" },{ name = "faker", specifier = ">=26.0.0,<27.0" },{ name = "google-cloud-pubsub", specifier = ">=1.7,<3.0" },{ name = "google-cloud-storage", specifier = ">=2.0.0,<3" },@@ -2706,7 +2672,6 @@ requires-dist = [{ name = "graphene", specifier = "<3.0" },{ name = "graphql-core", specifier = ">=2.3.2,<3" },{ name = "graphql-relay", specifier = ">=2.0.1,<3" },- { name = "html-to-draftjs", specifier = ">=1.0.1,<2" },{ name = "idna", specifier = ">=3.10" },{ name = "kombu", extras = ["sqs"], specifier = ">=4.6.11,<6.0.0" },{ name = "lxml", specifier = ">=4.9.3,<5" },@@ -2859,15 +2824,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl", hash = "sha256:a163dcaede0f1c021485e957a39245190e74249897e2ae4b2aa38595db237ee0", size = 29575, upload-time = "2021-05-16T22:03:41.177Z" },]-[[package]]-name = "soupsieve"-version = "2.8"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/6d/e6/21ccce3262dd4889aa3332e5a119a3491a95e8f60939870a3a035aabac0d/soupsieve-2.8.tar.gz", hash = "sha256:e2dd4a40a628cb5f28f6d4b0db8800b8f581b65bb380b97de22ba5ca8d72572f", size = 103472, upload-time = "2025-08-27T15:39:51.78Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/14/a0/bb38d3b76b8cae341dad93a2dd83ab7462e6dbcdd84d43f54ee60a8dc167/soupsieve-2.8-py3-none-any.whl", hash = "sha256:0cc76456a30e20f5d7f2e14a98a4ae2ee4e5abdc7c5ea0aafe795f344bc7984c", size = 36679, upload-time = "2025-08-27T15:39:50.179Z" },-]-[[package]]name = "sqlparse"version = "0.5.3"