No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
ba39348
... +1 ...
e71d23a
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
222 | 222 | old_value = getattr(record, field_name) |
|
223 | 223 | setattr(record, field_name, value_or_func(old_value)) |
|
224 | 224 | else: |
|
225 | - | setattr(record, field_name, value_or_func) |
|
225 | + | changed_attr = getattr(record, field_name, None) |
|
226 | + | ||
227 | + | if changed_attr.__class__.__name__ == 'ManyRelatedManager': |
|
228 | + | changed_attr.set(value_or_func) |
|
229 | + | else: |
|
230 | + | setattr(record, field_name, value_or_func) |
|
231 | + | ||
226 | 232 | if clean: |
|
227 | 233 | record.clean() |
|
228 | 234 | record.save() |
Files | Coverage |
---|---|
src/adminactions | -0.12% 84.72% |
Project Totals (23 files) | 84.72% |
e71d23a
d028f54
ba39348