Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixed #18990: Loaddata now complains if fixture doesn't exist #1134

Merged
merged 3 commits into from May 19, 2013

Conversation

Projects
None yet
2 participants
Contributor

senko commented May 18, 2013

The fixture named "initial_data" is exceptional though; if it
doesn't exist, the error is not raised. This allows syncdb and
flush management commands to attempt to load it without causing
an error if it doesn't exist.

This pull request fixes https://code.djangoproject.com/ticket/18990

senko added some commits May 18, 2013

Fixed #18990: Loaddata now complains if fixture doesn't exist
The fixture named "initial_data" is exceptional though; if it
doesn't exist, the error is not raised. This allows syncdb and
flush management commands to attempt to load it without causing
an error if it doesn't exist.
Fixed #18990 -- Loaddata now complains if fixture doesn't exist
If the fixture doesn't exist, loaddata will output a warning.

The fixture named "initial_data" is exceptional though; if it
doesn't exist, the warning is not emitted. This allows syncdb and
flush management commands to attempt to load it without causing
spurious warnings.

Thanks to Derega, ptone, dirigeant and d1ffuz0r for contributions
to the ticket.

andrewgodwin added a commit that referenced this pull request May 19, 2013

Merge pull request #1134 from senko/ticket_18990
Fixed #18990: Loaddata now complains if fixture doesn't exist

@andrewgodwin andrewgodwin merged commit 7a99d1e into django:master May 19, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment