Skip to content
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

fix(history): add a get_absolute_url method to APISHistoryTableBase #800

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

b1rger
Copy link
Contributor

@b1rger b1rger commented Apr 25, 2024

The historical models use history_id as id instead of the id of the
instance they refer to. We therefore override the get_absolute_url
method, so that it points to the historical record and not to the
instance it refers to.

The historical models use `history_id` as id instead of the `id` of the
instance they refer to. We therefore override the `get_absolute_url`
method, so that it points to the historical record and not to the
instance it refers to.
@b1rger b1rger marked this pull request as ready for review April 25, 2024 18:48
@b1rger b1rger requested a review from sennierer April 25, 2024 18:48
@b1rger b1rger merged commit dc8eec5 into main Apr 26, 2024
11 checks passed
@b1rger b1rger deleted the birger/fix-history-abs-url branch May 14, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants