We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b54029 commit 333197fCopy full SHA for 333197f
‎oscar_odin/mappings/context.py‎
@@ -408,7 +408,7 @@ def bulk_update_or_create_many_to_many(self):
408
# Instead of failing bulk_create here below, we will add an error.
409
self.errors.add_error(
410
OscarOdinException(
411
- f"Cannot create m2m relationship {Through.__name__} - related model '{relation.related_model.__name__}' is missing a primary key"
+ {Through.__name__: f"Cannot create m2m relationship {Through.__name__} - related model '{relation.related_model.__name__}' is missing a primary key"}
412
),
413
instance,
414
)
0 commit comments