From 7d9b48e8bbd0423fa42c943f47942fd0b2f39b91 Mon Sep 17 00:00:00 2001 From: Dmitriy Date: Fri, 19 Sep 2025 15:30:09 +0300 Subject: [PATCH] Update operations.py --- django_mongodb_backend/operations.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django_mongodb_backend/operations.py b/django_mongodb_backend/operations.py index 4b494c3d3..bb34989fb 100644 --- a/django_mongodb_backend/operations.py +++ b/django_mongodb_backend/operations.py @@ -184,6 +184,8 @@ def convert_embeddedmodelfield_value(self, value, expression, connection): if value is not None: # Apply database converters to each field of the embedded model. for field in expression.output_field.embedded_model._meta.fields: + if field.blank: + continue field_expr = Expression(output_field=field) converters = connection.ops.get_db_converters( field_expr