Don't call on_whange_with if the field is the same than the one that comes to
change
This commit is contained in:
1 parent
ce4cc91066
commit
280f93eaaa
1 file changed
+2
@@ -351,6 +351,8 @@ class ModelRecord(SignalEvent):
|
||||
continue
|
||||
if field_name not in on_change_with:
|
||||
continue
|
||||
if field_name == fieldname:
|
||||
continue
|
||||
args = {}
|
||||
for arg in on_change_with:
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user