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:
parent
f6c1beb824
commit
c486818bcc
@ -876,7 +876,7 @@ def txn_store(request, txn_type, txn=None):
|
|||||||
txn = Transaction()
|
txn = Transaction()
|
||||||
old_date = txn.date
|
old_date = txn.date
|
||||||
utils.fill_txn_from_post(txn_type, txn, post)
|
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(
|
messages.success(request, gettext_noop(
|
||||||
"This transaction was not modified."))
|
"This transaction was not modified."))
|
||||||
url = reverse("accounting:transactions.detail", args=(txn_type, txn))
|
url = reverse("accounting:transactions.detail", args=(txn_type, txn))
|
||||||
|
Loading…
Reference in New Issue
Block a user