2018-11-08 19:45:21 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.11.4 on 2017-08-21 05:08
|
2020-01-08 13:29:58 -06:00
|
|
|
|
2018-11-08 19:45:21 +00:00
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2019-12-05 16:57:52 +00:00
|
|
|
("peeringdb_server", "0001_initial"),
|
2018-11-08 19:45:21 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2019-12-05 16:57:52 +00:00
|
|
|
name="Partnership",
|
2018-11-08 19:45:21 +00:00
|
|
|
fields=[
|
2019-12-05 16:57:52 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"level",
|
|
|
|
models.PositiveIntegerField(
|
|
|
|
choices=[(1, "Data Validation Partner"), (2, "RIR Partner")],
|
|
|
|
default=1,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url",
|
|
|
|
models.URLField(
|
|
|
|
blank=True,
|
|
|
|
help_text="If specified clicking the partnership will take the user to this location",
|
|
|
|
null=True,
|
|
|
|
verbose_name="URL",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"logo",
|
|
|
|
models.FileField(
|
|
|
|
blank=True,
|
|
|
|
help_text=b"Allows you to upload and set a logo image file for this partnership",
|
|
|
|
null=True,
|
|
|
|
upload_to=b"logos/",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"org",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="partnerships",
|
|
|
|
to="peeringdb_server.Organization",
|
|
|
|
),
|
|
|
|
),
|
2018-11-08 19:45:21 +00:00
|
|
|
],
|
|
|
|
options={
|
2019-12-05 16:57:52 +00:00
|
|
|
"db_table": "peeringdb_partnership",
|
|
|
|
"verbose_name": "Partnership",
|
|
|
|
"verbose_name_plural": "Partnerships",
|
2018-11-08 19:45:21 +00:00
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|