From ea9d4601efe531d5bf406e57ccaf24e9ec0d989b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 18 Aug 2020 13:33:01 +0800 Subject: [PATCH] Added back the current user of the object in the fill_model_from_form method in TransactionFormView in the accounting application, since it did not call the parent method to set it. --- accounting/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/accounting/views.py b/accounting/views.py index 60d4e10..96f396f 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -837,6 +837,7 @@ class TransactionFormView(FormView): """Fills in the data model from the form.""" obj.old_date = obj.date utils.fill_txn_from_post(self.txn_type, obj, form.data) + obj.current_user = self.request.user def get_object(self) -> Optional[Account]: """Returns the current object, or None on a create form."""