Skip to content

Get previous revision delta in template? #797

@brylie

Description

@brylie

Problem Statement
When iterating over a revision history in a Django template, there doesn't appear to be a method to get the delta between revisions.

Describe the solution you'd like
From any revision, I would like to get the difference of that revision and the previous revision, while iterating over the revisions in a Django template.

Describe alternatives you've considered
I've considered writing a custom view that provides history diffing or perhaps extending the History base model with a get_prev_record_diff method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions