saxix / django-adminactions

Compare ba39348 ... +1 ... e71d23a

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

Learn more about Codecov Flags here.

Showing 1 of 1 files from the diff.

@@ -222,7 +222,13 @@
Loading
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()

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
src/adminactions/actions.py 91.67%
src/adminactions/api.py 92.65%
src/adminactions/apps.py 72.73%
src/adminactions/byrows_update.py 85.19%
src/adminactions/checks.py 37.50%
src/adminactions/exceptions.py 100.00%
src/adminactions/export.py 92.06%
src/adminactions/forms.py 100.00%
src/adminactions/graph.py 76.19%
src/adminactions/helpers.py 28.85%
src/adminactions/management/commands/create_extra_permissions.py 0.00%
src/adminactions/mass_update.py -0.60% 77.13%
src/adminactions/merge.py 92.86%
src/adminactions/models.py 71.43%
src/adminactions/perms.py 100.00%
src/adminactions/signals.py 100.00%
src/adminactions/templatetags/aa_compat.py 100.00%
src/adminactions/templatetags/actions.py 100.00%
src/adminactions/templatetags/massupdate.py 85.71%
src/adminactions/templatetags/merge.py 90.91%
src/adminactions/urls.py 100.00%
src/adminactions/utils.py 88.89%
src/adminactions/views.py 100.00%
Project Totals (23 files) 84.72%
Loading