#27133: Are fixtures deprecated?
-------------------------------------+-------------------------------------
Reporter: xennygrimmato | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):
* component: Migrations => Documentation
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
Is the deprecation note and the explanation in the 1.7 release notes
unclear?
If an application uses migrations, there is no automatic loading of
fixtures. Since migrations will be required for applications in Django
1.9, this behavior is considered deprecated. If you want to load initial
data for an app, consider doing it in a data migration.
`initial_data` fixtures are no longer loaded for apps with migrations; if
you want to load initial data for an app, we suggest you create a
migration for your application and define a `RunPython` or `RunSQL`
operation in the operations section of the migration.
`manage.py loaddata <fixturename>` still works fine but it doesn't happen
automatically. #24778 is a ticket about possibly allowing migrations to
load fixtures.
Maybe you could propose a documentation clarification as I'm not exactly
sure what would be helpful to clarify your doubt.
--
Ticket URL: <https://code.djangoproject.com/ticket/27133#comment:1>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/071.79206e4b5cc8145b30fa3786f3b97167%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.