signoffs.shortcuts#

Shortcuts are imported from the public API in singoffs.shortcuts E.g.

    from signoffs.shortcuts import get_signoff_or_404

signoffs.shortcuts#

Convenience methods for common tasks

Module Contents#

Functions#

get_signet_or_404

Return Signet with given pk, for the given Signoff Type or id, or raise Http404

get_signoff_or_404

Return Signoff of given type or id, backed by Signet with the given pk, or raise Http404

get_approval_stamp_or_404

Return ApprovalStamp instance with given pk for the given Approval Type or id, or raise Http404

get_approval_or_404

Return Approval of given type or id, backed by StampModel with given pk, or raise Http404

API#

signoffs.shortcuts.get_signet_or_404(signoff_type, signet_pk, **kwargs)[source]#

Return Signet with given pk, for the given Signoff Type or id, or raise Http404

signoffs.shortcuts.get_signoff_or_404(signoff_type, signet_pk, **kwargs)[source]#

Return Signoff of given type or id, backed by Signet with the given pk, or raise Http404

signoffs.shortcuts.get_approval_stamp_or_404(approval_type, stamp_pk, **kwargs)[source]#

Return ApprovalStamp instance with given pk for the given Approval Type or id, or raise Http404

signoffs.shortcuts.get_approval_or_404(approval_type, stamp_pk)[source]#

Return Approval of given type or id, backed by StampModel with given pk, or raise Http404