fairdm.contrib.plugins.mixins#
Mixins that decide how a refused plugin page answers and where its Back control points.
Module Contents#
Classes#
Answer 404 rather than 403 or a sign-in redirect for a private record. |
|
Send a deletion page’s Back control to the record’s own page rather than its list. |
API#
- class PrivateRecordNotFoundMixin[source]#
Answer 404 rather than 403 or a sign-in redirect for a private record.
A 403 or a redirect would confirm that a private record exists at this address. The 404 message names the record’s kind from
registered_model.List this mixin before
Plugin, and beforeFairDMDeleteViewon a deletion page, so itshandle_no_permissionwins in the MRO.