resolution_fixed type_defect | by rjsparks@nostrum.com
A recent release added the future_presentations and last_presented methods to DocumentInfo. The implementation uses the new SessionPresentation class from Meeting. That class maps Session objects to Document objects using a through table to capture version.
This fails when the methods are invoked from a DocHistory object instead of a Document object, since a DocHistory object will have no sessionpresentation_set.
Instead, the methods should be implemented on Document and DocHistory separately, with the DocHistory implementation using the Document the object points to.
Issue migrated from trac:1571 at 2022-03-04 03:58:33 +0000
resolution_fixedtype_defect| by rjsparks@nostrum.comA recent release added the future_presentations and last_presented methods to DocumentInfo. The implementation uses the new SessionPresentation class from Meeting. That class maps Session objects to Document objects using a through table to capture version.
This fails when the methods are invoked from a DocHistory object instead of a Document object, since a DocHistory object will have no sessionpresentation_set.
Instead, the methods should be implemented on Document and DocHistory separately, with the DocHistory implementation using the Document the object points to.
Issue migrated from trac:1571 at 2022-03-04 03:58:33 +0000