hagsteel / swampdragon

swampdragon
Other
557 stars 73 forks source link

field ManyToMany 'through' model #160

Closed chogarcia closed 8 years ago

chogarcia commented 9 years ago

SwampDragon does not support field ManyToMany 'through' model

    def _deserialize_related(self, key, val, save_instance=False):
        serializer = self._get_related_serializer(key)
        if isinstance(val, list):
            for v in val:
                related_instance = serializer(v).deserialize()
                if save_instance:
                    related_instance.save()
                getattr(self.instance, key).add(related_instance)

I am just wondering if this is on the roadmap?