When clicking the + button on related items (IOP, Significant Event, CDPI), we weren't providing the correct deployment UUID, which threw an error
After saving a related item, we now redirect to the canonical edit view in order to preserve the new back link behavior
The back links weren't working if we didn't have any published objects. Updated to correctly look up the related campaign, given either a Change object representing a deployment or a Change object representing a deployment-child object
Related items were not appearing on campaign detail page if they were related to an unpublished deployment. Fixed that.
I also noticed that the Validate button is not working when editing related items. The problem is we disable the form field for foreign keys, so they aren't included in the form submission. When the model_form gets validated, it fails due to a missing deployment (or other related item). Need to think of a fix for that, but these changes will at least allow people to create related items again.
A few bugfixes here:
I also noticed that the Validate button is not working when editing related items. The problem is we disable the form field for foreign keys, so they aren't included in the form submission. When the model_form gets validated, it fails due to a missing deployment (or other related item). Need to think of a fix for that, but these changes will at least allow people to create related items again.