Loading EmbeddedModelField/PolymorphicEmbeddedModelField with missing data crashes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • 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 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: