Added check_relationship to the is_dirty() test for the transactions in the txn_store view of the accounting application.

This commit is contained in:
依瑪貓 2020-08-12 14:17:42 +08:00
parent f6c1beb824
commit c486818bcc

View File

@ -876,7 +876,7 @@ def txn_store(request, txn_type, txn=None):
txn = Transaction()
old_date = txn.date
utils.fill_txn_from_post(txn_type, txn, post)
if not txn.is_dirty():
if not txn.is_dirty(check_relationship=True):
messages.success(request, gettext_noop(
"This transaction was not modified."))
url = reverse("accounting:transactions.detail", args=(txn_type, txn))