Add serialization support for EmbeddedModelField

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: django
    • Python Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      Django's dumpdata and loaddata command don't work correctly for EmbeddedModelField. The dumpdata and loaddata commands are tools in Django to effectively migrate data from one database backend.  This is considered a "nice-to-have" for our Django GA requirements as we don't expect many developers/enterprise use-cases to require taking a database and serializing the results of an object to be placed in an arbitrary file. Even if needed, they can leverage mongodump or similar native products to achieve a similar result. However, if there is product ask, this 

      Definition of done

      Create a custom serializer for EmbeddedModelFields that will appropriately serialize (and deserialize) embedded model field instances to be placed in arbitrary files. To confirm this works, test with dumpdata and loaddata provided by Django. As well, please create tests for the serializer.

      Pitfalls

      Poor documentation around custom serializers could necessitate reading native Django code. 

              Assignee:
              Unassigned
              Reporter:
              Jib Adegunloye
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: