diff options
author | David Reyna <David.Reyna@windriver.com> | 2020-03-25 21:24:55 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-03-29 20:02:36 +0100 |
commit | 4dabdbe11ddc47a885c7f8cc6b3f26439d40d77c (patch) | |
tree | 1cfd3f48830d5688e65c283c181767d74a951358 /bitbake/lib/toaster/orm/migrations/0002_customimagerecipe.py | |
parent | 7e252ef31094f760b5666aec9b2205166a8ccbd2 (diff) | |
download | poky-4dabdbe11ddc47a885c7f8cc6b3f26439d40d77c.tar.gz |
bitbake: toaster: migrate to Django-2.2
Toaster migration to Django-2.2. Django-1.x has been deprecated.
[YOCTO #13207]
(Bitbake rev: 9730f95686b2ac72cf1fa513c555f7c7787e2667)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm/migrations/0002_customimagerecipe.py')
-rw-r--r-- | bitbake/lib/toaster/orm/migrations/0002_customimagerecipe.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/orm/migrations/0002_customimagerecipe.py b/bitbake/lib/toaster/orm/migrations/0002_customimagerecipe.py index 9cec82e8d4..09c2bffa28 100644 --- a/bitbake/lib/toaster/orm/migrations/0002_customimagerecipe.py +++ b/bitbake/lib/toaster/orm/migrations/0002_customimagerecipe.py | |||
@@ -14,10 +14,10 @@ class Migration(migrations.Migration): | |||
14 | migrations.CreateModel( | 14 | migrations.CreateModel( |
15 | name='CustomImageRecipe', | 15 | name='CustomImageRecipe', |
16 | fields=[ | 16 | fields=[ |
17 | ('recipe_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='orm.Recipe')), | 17 | ('recipe_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='orm.Recipe', on_delete=models.CASCADE)), |
18 | ('last_updated', models.DateTimeField(default=None, null=True)), | 18 | ('last_updated', models.DateTimeField(default=None, null=True)), |
19 | ('base_recipe', models.ForeignKey(related_name='based_on_recipe', to='orm.Recipe')), | 19 | ('base_recipe', models.ForeignKey(related_name='based_on_recipe', to='orm.Recipe', on_delete=models.CASCADE)), |
20 | ('project', models.ForeignKey(to='orm.Project')), | 20 | ('project', models.ForeignKey(to='orm.Project', on_delete=models.CASCADE)), |
21 | ], | 21 | ], |
22 | bases=('orm.recipe',), | 22 | bases=('orm.recipe',), |
23 | ), | 23 | ), |