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

django-import-export / django-import-export / 29761174005
100%

Build:
DEFAULT BRANCH: main
Ran 20 Jul 2026 04:51PM UTC
Jobs 3
Files 20
Run time 1min
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

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.

11 of 11 new or added lines in 1 file covered. (100.0%)

2303 of 2304 relevant lines covered (99.96%)

3.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 py312-django52 - 29761174005.1 20 Jul 2026 04:51PM UTC 20
99.96
GitHub Action Run
2 py312-djangomain - 29761174005.2 20 Jul 2026 04:51PM UTC 20
99.96
GitHub Action Run
3 py312-django60 - 29761174005.3 20 Jul 2026 04:51PM UTC 20
99.96
GitHub Action Run
Source Files on build 29761174005
  • Tree
  • List 20
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5edd4782 on github
  • Prev Build on main (#28432289697)
  • Next Build on main (#29761222245)
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