From 21819e6dbf422fe3ebe23cc006c0ef7bfc5c73de Mon Sep 17 00:00:00 2001 From: Ola Sitarska Date: Sun, 21 Sep 2014 17:46:01 +0200 Subject: [PATCH] Fixed #23512 -- Made migration docs about initial_data clearer Thanks @abhillman and @Markush2010 for submitting the ticket. --- docs/releases/1.7.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 1f2e7cfafc..954a3f2514 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -65,7 +65,9 @@ but a few of the key features are: it as soon as possible (nothing more than renaming is required). * ``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. + you want to load initial data for an app, we suggest you create a migration for + your application and define a :class:`~django.db.migrations.operations.RunPython` + or :class:`~django.db.migrations.operations.RunSQL` operation in the ``operations`` section of the migration. * Test rollback behavior is different for apps with migrations; in particular, Django will no longer emulate rollbacks on non-transactional databases or