Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 20, 2024
1 parent f269a47 commit f191255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simple_history/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,14 +961,14 @@ def get_related_model(self):
class HistoricOneToOneField(models.OneToOneField):
"""
Allows one to one fields to work properly from a historic instance.
If you use as_of queries to extract historical instances from
a model, and you have other models that are related by one to
one fields and also historic, changing them to a
HistoricOneToOneField field type will allow you to naturally
cross the relationship boundary at the same point in time as
the origin instance.
A historic instance maintains an attribute ("_historic") when
it is historic, holding the historic record instance and the
timepoint used to query it ("_as_of"). HistoricOneToOneField
Expand Down

0 comments on commit f191255

Please sign in to comment.