-
-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get previous revision delta in template? #797
Comments
I have found how the django-simple-history/simple_history/models.py Lines 409 to 418 in b43890f
I will open a pull request for consideration. |
brylie
added a commit
that referenced
this issue
Feb 19, 2021
Closes #797 Added next and previous record diffs for consistency
11 tasks
I opened a draft pull request for feedback: #798 |
brylie
added a commit
that referenced
this issue
Oct 26, 2021
Closes #797 Added next and previous record diffs for consistency
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: