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

django-import-export / django-import-export / 29761174005 / 2
100%
main: 100%

Build:
DEFAULT BRANCH: main
Ran 20 Jul 2026 04:51PM UTC
Files 20
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Jul 2026 04:48PM UTC coverage: 99.957% (+0.001%) from 99.956%
29761174005.2

push

github

web-flow
Fix CachedInstanceLoader to raise MultipleObjectsReturned on duplicate import id (#2162) (#2169)

* fix: raise MultipleObjectsReturned for duplicate import id in CachedInstanceLoader (#2162)

CachedInstanceLoader built its instance cache with a dict comprehension
keyed on the import id, so when two rows shared an import id the second
silently overwrote the first and get_instance() returned only the last
match. ModelInstanceLoader, which calls QuerySet.get(), already raises
MultipleObjectsReturned in this case. Track duplicate import ids while
building the cache and raise the same exception from get_instance() so
the two loaders behave consistently.

* fix: address cached loader duplicate review

* Don't leak the import id value in the duplicate-match error

Per review: the user-supplied import id value was interpolated into the
MultipleObjectsReturned message, so an attacker-controlled string could reach
logs that may render it unescaped. Report only the configured field name and
assert the value no longer appears in the message.

2303 of 2304 relevant lines covered (99.96%)

1.0 hits per line

Source Files on job py312-djangomain - 29761174005.2
  • Tree
  • List 20
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 29761174005
  • 5edd4782 on github
  • Prev Job for on main (#28432289697.3)
  • Next Job for on main (#29761222245.1)
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