#15578: loaddata and processing order of fixtures
-------------------------------------+-------------------------------------
Reporter: lsaffre | Owner: nobody
Type: | Status: new
Cleanup/optimization | Component: Documentation
Milestone: | Severity: Normal
Version: 1.2 | Keywords:
Resolution: | Has patch: 0
Triage Stage: Accepted | Needs tests: 0
Needs documentation: 0 |
Patch needs improvement: 0 |
-------------------------------------+-------------------------------------
Changes (by russellm):
* component: Core (Management commands) => Documentation
* stage: Design decision needed => Accepted
Comment:
The statement is still accurate -- just imprecise.
Firstly, fixtures *are* loaded in the "foo", "bar", "baz" order. However,
"foo" doesn't refer to a single fixture; any fixture named "foo" *in any
app* will be loaded. This is what allows the "initial_data" load to occur,
but the same trick works for any fixture name. The admonition that is
there is intended to wave people off of the idea that specifying fixture
order is enough to guarantee 100% predictable. This isn't true -- you also
need to take into account the order in which applications are defined.
The admonition was probably also a partial "commit to nothing" statement,
giving us some wiggle room if we needed to change things. Fixtures have
been in the water for long enough that this reason no longer holds.
So I agree - fixing the documentation is all that is required here. Just
deleting the line is the simple approach; a slightly better approach would
expand the statement to include a the app ordering part of the process.
--
Ticket URL: <http://code.djangoproject.com/ticket/15578#comment:4>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.