From 74f5c5abe270d09adddbc986bfa19fbc7072db2c Mon Sep 17 00:00:00 2001 From: Ray Logel Date: Mon, 18 Jun 2018 14:26:54 -0400 Subject: [PATCH] Re-order arguments to keep original order for existing arguments --- simple_history/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simple_history/models.py b/simple_history/models.py index e291e219d..2597fc6d8 100644 --- a/simple_history/models.py +++ b/simple_history/models.py @@ -37,16 +37,16 @@ class HistoricalRecords(object): def __init__(self, verbose_name=None, bases=(models.Model,), user_related_name='+', table_name=None, inherit=False, excluded_fields=None, history_id_field=None, - user_model=None, get_user=default_get_user, - history_change_reason_field=None): + history_change_reason_field=None, + user_model=None, get_user=default_get_user): self.user_set_verbose_name = verbose_name self.user_related_name = user_related_name self.table_name = table_name self.inherit = inherit self.history_id_field = history_id_field + self.history_change_reason_field = history_change_reason_field self.user_model = user_model self.get_user = get_user - self.history_change_reason_field = history_change_reason_field if excluded_fields is None: excluded_fields = [] self.excluded_fields = excluded_fields