Skip to content

DocHistory and the current implementation of future_presentations interact badly #1571

Description

@ietf-svn-bot

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions