|
@ -227,10 +227,10 @@ class BaseException(models.AbstractModel): |
|
|
model_exceptions, sub_exceptions, optimize) |
|
|
model_exceptions, sub_exceptions, optimize) |
|
|
|
|
|
|
|
|
all_exception_ids = [] |
|
|
all_exception_ids = [] |
|
|
for obj, exception_ids in exception_by_rec.iteritems(): |
|
|
|
|
|
|
|
|
for obj, exception_ids in exception_by_rec.items(): |
|
|
obj.exception_ids = [(6, 0, exception_ids)] |
|
|
obj.exception_ids = [(6, 0, exception_ids)] |
|
|
all_exception_ids += exception_ids |
|
|
all_exception_ids += exception_ids |
|
|
for rule, exception_ids in exception_by_rule.iteritems(): |
|
|
|
|
|
|
|
|
for rule, exception_ids in exception_by_rule.items(): |
|
|
rule[reverse_field] = [(6, 0, exception_ids.ids)] |
|
|
rule[reverse_field] = [(6, 0, exception_ids.ids)] |
|
|
if exception_ids: |
|
|
if exception_ids: |
|
|
all_exception_ids += [rule.id] |
|
|
all_exception_ids += [rule.id] |
|
|