Ensures that link from the Campaign List table takes user to canonical-redirect view rather than change-update view.
Updated the canonical-redirect, canonical-published-detail, and canonical-draft-edit views to no longer take in a draft UUID (ie they only require the canonical UUID + action, such as v2/<str:model>/<uuid:canonical_uuid>/<edit|view|''>).
Add related_drafts(canonical_uuid: str) and related_in_progress_drafts(canonical_uuid: str) convenience methods to the Change model queryset.
Strip down the logic of the CanonicalDraftEdit view to render the latest in-progress draft (ie the draft with the lowest status value). In the event of no in-progress drafts, a 404 is returned.
This PR makes the following changes:
canonical-redirect
view rather thanchange-update
view.canonical-redirect
,canonical-published-detail
, andcanonical-draft-edit
views to no longer take in a draft UUID (ie they only require the canonical UUID + action, such asv2/<str:model>/<uuid:canonical_uuid>/<edit|view|''>
).related_drafts(canonical_uuid: str)
andrelated_in_progress_drafts(canonical_uuid: str)
convenience methods to theChange
model queryset.CanonicalDraftEdit
view to render the latest in-progress draft (ie the draft with the loweststatus
value). In the event of no in-progress drafts, a404
is returned.Related to #555