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#
Return Signet with given pk, for the given Signoff Type or id, or raise Http404 |
|
Return Signoff of given type or id, backed by Signet with the given pk, or raise Http404 |
|
Return ApprovalStamp instance with given pk for the given Approval Type or id, or raise Http404 |
|
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