Skip to content

Commit

Permalink
Don't call patch_field on EmbeddedField schema fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Nov 2, 2020
1 parent 932c654 commit 29c0e30
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions umongo/builder.py
Expand Up @@ -202,9 +202,6 @@ def _patch_field(self, field):
self._patch_field(field.key_field)
if field.value_field:
self._patch_field(field.value_field)
elif isinstance(field, fields.EmbeddedField):
for embedded_field in field.schema.fields.values():
self._patch_field(embedded_field)

def _build_schema(self, template, schema_bases, schema_fields, schema_non_fields):
# Recursively set the `instance` attribute to all fields
Expand Down

0 comments on commit 29c0e30

Please sign in to comment.