mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 03:43:12 +00:00
c4a104b3b6
Just ran black on the whoe repository. Fix #210.
52 lines
1.7 KiB
Python
52 lines
1.7 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.10.7 on 2018-03-23 01:18
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [("topologie", "0048_ap_machine")]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="NewSw",
|
|
fields=[
|
|
(
|
|
"machine_ptr",
|
|
models.OneToOneField(
|
|
auto_created=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
parent_link=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
to="machines.Machine",
|
|
),
|
|
),
|
|
("location", models.CharField(max_length=255)),
|
|
("number", models.PositiveIntegerField()),
|
|
("stack_member_id", models.PositiveIntegerField(blank=True, null=True)),
|
|
(
|
|
"model",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
to="topologie.ModelSwitch",
|
|
),
|
|
),
|
|
(
|
|
"stack",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
to="topologie.Stack",
|
|
),
|
|
),
|
|
],
|
|
bases=("machines.machine",),
|
|
)
|
|
]
|