Replace the FK towards Document on OcrModel by a M2M relation
Compare changes
GitLab upgrade completed. Current version is 17.10.3. We now benefit from the enhancements of 17.9 and 17.10 releases. Among other improvements, it is now possible to set the automatic deletion of continuous integration pipelines. You can help us reduce storage usage by setting an expiry date for your pipelines.
Closes #353 (closed)
This MR implements the refactoring of the OcrModel.document
ForeignKey into a ManyToMany relation towards Document
instances:
0045
) to implement the M2M relation aswell as the OcrModelDocument
M2M "through" model. Note that this migration also uses a RunPython
function to migrate existing OcrModel.document
links to match the new schema.OcrModelDocument
) and added some inlines on Document
and OcrModel
to easily browse relations.