Skip to content

Commit 2eca4e7

Browse files
pre-commit-ci[bot]jeking3
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c010834 commit 2eca4e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

simple_history/models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,15 +555,17 @@ def post_delete(self, instance, using=None, **kwargs):
555555
def get_change_reason_for_object(self, instance, history_type, using):
556556
"""
557557
Get change reason for object.
558-
Customize this method to automatically fill change reason from context.
558+
Customize this method to automatically fill change reason from context.
559559
"""
560560
return get_change_reason_from_object(instance)
561561

562562
def create_historical_record(self, instance, history_type, using=None):
563563
using = using if self.use_base_model_db else None
564564
history_date = getattr(instance, "_history_date", timezone.now())
565565
history_user = self.get_history_user(instance)
566-
history_change_reason = self.get_change_reason_for_object(instance, history_type, using)
566+
history_change_reason = self.get_change_reason_for_object(
567+
instance, history_type, using
568+
)
567569
manager = getattr(instance, self.manager_name)
568570

569571
attrs = {}

0 commit comments

Comments
 (0)