Skip to content

Docs: misleading example in prev and next record  #1428

Open
@capoaira

Description

@capoaira

Describe the bug
According to the Docs (https://django-simple-history.readthedocs.io/en/latest/querying_history.html#getting-previous-and-next-historical-record), history.frist() will return the first version of the object and therefore, prev_record will be None. But actually it is the other way around. history.frist() returns the most recent version and therefore next_record in None

Or did I misunderstand something?

Expected behavior
The documentation is not clear about it, which leads to errors.

Environment (please complete the following information):

  • Django Simple History Version: 3.5.0
  • Django Version: 4.2.11
  • postgres: 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions