#13680: loaddata should issue a warning when attempting to load data using an
unknown serialization format even when it is unspecified
-------------------------------------+-------------------------------------
Reporter: stevecrozz@… | Owner:
Type: | youngjaekwon
Cleanup/optimization | Status: assigned
Component: Core | Version: dev
(Serialization) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by youngjaekwon):
* owner: nobody => youngjaekwon
* status: new => assigned
Comment:
I'm going to work on this. I've reproduced the issue on the current main
branch — running `loaddata test_data` fails with "No fixture named
'test_data' found" even when `test_data.bogus` exists in the fixtures
directory, with no hint that the format is unrecognized.
Planning to add a fallback check: if no fixture matches the known
serialization formats, scan for files with the same basename and
report the unknown extension explicitly.
--
Ticket URL: <https://code.djangoproject.com/ticket/13680#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019ddd579966-956faf6f-e152-4bfe-98ab-144ad1ed06b2-000000%40eu-central-1.amazonses.com.