NationalCentreTruthReconciliation / Secure-Record-Transfer

A transfer portal incorporating CAAIS and BagIt Specifications
https://secure-record-transfer.readthedocs.io/en/latest/
4 stars 2 forks source link

CAAIS Metadata Objects Can't be Created Manually #225

Closed danloveg closed 1 month ago

danloveg commented 1 month ago

CAAIS Metadata objects can't be created manually from the admin site due to this error:

save() prohibited to prevent data loss due to unsaved related object

A save() call should be added before this line: https://github.com/NationalCentreTruthReconciliation/Secure-Record-Transfer/blob/ec155f4c86937167e2bd379b0001e6c6b4fc0365/bagitobjecttransfer/caais/forms.py#L139 to save the Metadata model before saving the identifier linked to the metadata object.