• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

asmodehn / openwisp-utils / 26755467475

29 May 2026 11:18PM UTC coverage: 97.447% (+0.2%) from 97.255%
26755467475

push

github

nemesifier
[fix] Fixed ValidatedModelSerializer: validation of PUT/PATCH & relationships #633

Updated ValidatedModelSerializer.validate() to:
- Use copy() for existing instances to avoid mutating the original
- Skip reverse relations (ForeignObjectRel) during setattr
- Skip nested relationships
- Convert Django ValidationError to DRF ValidationError so errors
  are properly serialized in API responses and picklable in the
  parallel test runner

Fixes #633

---------

Co-authored-by: BHARATH0153 <bharath@openwisp.org>
Co-authored-by: Federico Capoano <f.capoano@openwisp.io>

3932 of 4035 relevant lines covered (97.45%)

13.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

98.06
/admin.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc