Loading embedded models with missing fields that use database converters crashes

XMLWordPrintableJSON

    • 🔵 Done
    • Python Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      As discussed at https://github.com/mongodb/django-mongodb-backend/pull/407, loading a model with an EmbeddedModelField or PolymorphicEmbeddedModelField (and the ArrayField variants) where on of the embedded model field's isn't present in a document crashes. 

      Data could be missing if the user is using an existing db with sparse data, or if they added a field to an existing embedded model, since schema changes on embedded models aren't yet supported.

            Assignee:
            Tim Graham
            Reporter:
            Tim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: