Open gamboz opened 10 months ago
Rewriting M2MOrderedThroughManager.add as follows seems to fix the issue (just empirically, I don't really know what's going on :)
def add(self, *objs, through_defaults=None):
with allow_m2m_operation(rel.through):
return super().add(*objs, through_defaults=through_defaults)
With Janeway 1.5, when adding a chapter to a book, I get
TypeError: add() got an unexpected keyword argument 'through_defaults'
(full traceback below).I suspect its related to the upgrade to Django 3.2.