[Django] #23512: Make migration docs about initial_data fixtures clearer

5 views
Skip to first unread message

Django

unread,
Sep 17, 2014, 8:01:13 PM9/17/14
to django-...@googlegroups.com
#23512: Make migration docs about initial_data fixtures clearer
-------------------------------+--------------------
Reporter: Markush2010 | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
From @abhillman on IRC:

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/23512>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 17, 2014, 8:01:34 PM9/17/14
to django-...@googlegroups.com
#23512: Make migration docs about initial_data fixtures clearer
-------------------------------+--------------------------------------

Reporter: Markush2010 | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.7
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 Markush2010):

* cc: info+coding@… (added)
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


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

Django

unread,
Sep 17, 2014, 8:03:51 PM9/17/14
to django-...@googlegroups.com
#23512: Make migration docs about initial_data fixtures clearer
--------------------------------------+------------------------------------
Reporter: Markush2010 | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timgraham):

* type: Uncategorized => Cleanup/optimization
* easy: 0 => 1
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/23512#comment:2>

Django

unread,
Sep 17, 2014, 8:05:13 PM9/17/14
to django-...@googlegroups.com
#23512: Make migration docs about initial_data fixtures clearer
--------------------------------------+------------------------------------
Reporter: Markush2010 | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by timgraham):

Should also be changed in the 1.7 release notes as described in #23513.

--
Ticket URL: <https://code.djangoproject.com/ticket/23512#comment:3>

Django

unread,
Sep 21, 2014, 11:46:28 AM9/21/14
to django-...@googlegroups.com
#23512: Make migration docs about initial_data fixtures clearer
-------------------------------------+-------------------------------------
Reporter: Markush2010 | Owner:
Type: | olasitarska
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.7

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by olasitarska):

* status: new => assigned
* owner: nobody => olasitarska


--
Ticket URL: <https://code.djangoproject.com/ticket/23512#comment:4>

Django

unread,
Sep 21, 2014, 11:48:15 AM9/21/14
to django-...@googlegroups.com
#23512: Make migration docs about initial_data fixtures clearer
-------------------------------------+-------------------------------------
Reporter: Markush2010 | Owner:
Type: | olasitarska
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.7

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by olasitarska):

* has_patch: 0 => 1


Comment:

PR https://github.com/django/django/pull/3250

--
Ticket URL: <https://code.djangoproject.com/ticket/23512#comment:5>

Django

unread,
Sep 21, 2014, 12:24:38 PM9/21/14
to django-...@googlegroups.com
#23512: Make migration docs about initial_data fixtures clearer
-------------------------------------+-------------------------------------
Reporter: Markush2010 | Owner:
Type: | olasitarska
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
Has patch: 1 | checkin
Needs tests: 0 | Needs documentation: 0
Easy pickings: 1 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Markush2010):

* stage: Accepted => Ready for checkin


Comment:

Thank you Ola. Looks good to me.

--
Ticket URL: <https://code.djangoproject.com/ticket/23512#comment:6>

Django

unread,
Sep 21, 2014, 12:34:06 PM9/21/14
to django-...@googlegroups.com
#23512: Make migration docs about initial_data fixtures clearer
-------------------------------------+-------------------------------------
Reporter: Markush2010 | Owner:
Type: | olasitarska
Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.7
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
Has patch: 1 | checkin
Needs tests: 0 | Needs documentation: 0
Easy pickings: 1 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Baptiste Mispelon <bmispelon@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"21819e6dbf422fe3ebe23cc006c0ef7bfc5c73de"]:
{{{
#!CommitTicketReference repository=""
revision="21819e6dbf422fe3ebe23cc006c0ef7bfc5c73de"
Fixed #23512 -- Made migration docs about initial_data clearer

Thanks @abhillman and @Markush2010 for submitting the ticket.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23512#comment:7>

Django

unread,
Sep 21, 2014, 12:34:44 PM9/21/14
to django-...@googlegroups.com
#23512: Make migration docs about initial_data fixtures clearer
-------------------------------------+-------------------------------------
Reporter: Markush2010 | Owner:
Type: | olasitarska
Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.7

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
Has patch: 1 | checkin
Needs tests: 0 | Needs documentation: 0
Easy pickings: 1 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Baptiste Mispelon <bmispelon@…>):

In [changeset:"99c2e40384ff74755145e05bd12f081316941e81"]:
{{{
#!CommitTicketReference repository=""
revision="99c2e40384ff74755145e05bd12f081316941e81"
[1.7.x] Fixed #23512 -- Made migration docs about initial_data clearer

Thanks @abhillman and @Markush2010 for submitting the ticket.

Backport of 21819e6dbf422fe3ebe23cc006c0ef7bfc5c73de from master.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23512#comment:8>

Reply all
Reply to author
Forward
0 new messages