Open shimulch opened 5 years ago
After some digging I think the issue lies in djongo/models/fields.py:908
# Default value is set to be a dict
setattr(self.instance, self.field.attname, {})
# It should be a Set
setattr(self.instance, self.field.attname, set())
If you think this is what it should be, I can do a PR request.
One line description of the issue
ArrayReferenceManager.add() method is throwing following error if called right after ArrayReferenceManager.clear().
Python script (Example)
Traceback