Skip to content

Admin page History button has broken link for historical objects. #527

Open
@ahmedaljawahiry

Description

@ahmedaljawahiry

Bug
When viewing a historical object in the admin, the "HISTORY" button on the top right does nothing on-click.

To Reproduce

  1. Go to admin page.
  2. Click on any model.
  3. Click on an instance of the model to get to the admin form.
  4. Click the "HISTORY" button in the top right.
  5. Click on some past instance.
  6. Click the "HISTORY" button in the top right again.
  7. Nothing happens.

Expected behavior
On clicking the button, you return to the list of historical objects.

Screenshots
HTML from Chrome developer, showing an empty href:

image

Environment

  • OS: Windows 10
  • Browser (if applicable): Chrome
  • Django Simple History Version: 2.7.0
  • Django Version: 2.1.5
  • Database Version: PostgreSQL 10.4

Additional context
I'm not 100% sure if this is coming from your side or mine. Every other piece of history-functionality appears to be working - I cant see what would cause this bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedIssue accepted for completionbugIssues related to confirmed bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions