mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00

Removed obsolete references to django.core.urlresolvers. Added the
newly required on_delete parameters to foreign key relationships in
models.py and in all migrations.
(Amber Elliot's 2d526f9b0d
served as a
reference for these changes).
Signed-off-by: Paul Eggleton <paul.eggleton@linux.microsoft.com>
32 lines
1.3 KiB
Python
32 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import datetime
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('layerindex', '0010_add_dependencies'),
|
|
('rrs', '0006_maintplan_email'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='maintenanceplanlayerbranch',
|
|
name='python2_environment',
|
|
field=models.ForeignKey(blank=True, null=True, help_text='Environment to use for Python 2 commits', related_name='maintplan_layerbranch_python2_set', to='layerindex.PythonEnvironment', on_delete=models.SET_NULL),
|
|
),
|
|
migrations.AddField(
|
|
model_name='maintenanceplanlayerbranch',
|
|
name='python3_environment',
|
|
field=models.ForeignKey(blank=True, null=True, help_text='Environment to use for Python 3 commits', related_name='maintplan_layerbranch_python3_set', to='layerindex.PythonEnvironment', on_delete=models.SET_NULL),
|
|
),
|
|
migrations.AddField(
|
|
model_name='maintenanceplanlayerbranch',
|
|
name='python3_switch_date',
|
|
field=models.DateTimeField(verbose_name='Commit date to switch to Python 3', default=datetime.datetime(2016, 6, 2, 0, 0)),
|
|
),
|
|
]
|