[Django] #23513: Fixtures/initial_data Clarification in Release Notes for django 1.7

2 views
Skip to first unread message

Django

unread,
Sep 17, 2014, 8:01:26 PM9/17/14
to django-...@googlegroups.com
#23513: Fixtures/initial_data Clarification in Release Notes for django 1.7
-------------------------+-------------------------------------------------
Reporter: | Owner: nobody
abhillman | Status: new
Type: | Version: 1.7
Uncategorized | Keywords: runpython runsql documentation
Component: | migrations initial_data
Documentation | Has patch: 0
Severity: Normal | UI/UX: 0
Triage Stage: |
Unreviewed |
Easy pickings: 1 |
-------------------------+-------------------------------------------------
When migrations are created in Django 1.7, the fixtures are ignored. This
is a perfectly fine decision, but many users (such as myself) still need
fixture-like functionality. That functionality is provided by RunPython or
RunSQL within a migration. While the release notes correctly indicate that
modifying/creating a migration can replace initial_data, they could be a
little clearer, noting RunPython or RunSQL. For example:

"initial_data fixtures are no longer loaded for apps with migrations; if
you want to load initial data for an app, we suggest you do it in a
migration."

... could become

"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 you application and define a RunPython or RunSQL command in
the operations section of the migration."

That could be immensely helpful for pointing users in the right direction,
especially if they are eager to quickly get django 1.7 up and running...
whilst maintaining fixture-like functionality.

--
Ticket URL: <https://code.djangoproject.com/ticket/23513>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 17, 2014, 8:04:48 PM9/17/14
to django-...@googlegroups.com
#23513: Fixtures/initial_data Clarification in Release Notes for django 1.7
-------------------------------------+-------------------------------------
Reporter: abhillman | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 1.7
Severity: Normal | Resolution: duplicate
Keywords: runpython runsql | Triage Stage:
documentation migrations | Unreviewed
initial_data | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 1 |
-------------------------------------+-------------------------------------
Changes (by timgraham):

* status: new => closed
* needs_better_patch: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_docs: => 0


Comment:

Since the text is identical, we can make the update part of #23513.

--
Ticket URL: <https://code.djangoproject.com/ticket/23513#comment:1>

Reply all
Reply to author
Forward
0 new messages