8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-10-31 23:22:49 +00:00
re2o/machines/migrations/0055_nas.py
Hugo Levy-Falk c4a104b3b6 I like my black.
Just ran black on the whoe repository. Fix #210.
2019-11-04 22:47:24 +01:00

45 lines
1.4 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-09-10 21:51
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("machines", "0054_text_zone")]
operations = [
migrations.CreateModel(
name="Nas",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=255, unique=True)),
(
"machine_type",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
related_name="machinetype_on_nas",
to="machines.MachineType",
),
),
(
"nas_type",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
related_name="nas_type",
to="machines.MachineType",
),
),
],
)
]