Commit 59dbcf18 authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI
Browse files

[team][migrations] Pre-commit cleanup

parent 95f2641b
......@@ -27,8 +27,9 @@
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
......@@ -39,18 +40,44 @@ class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
name='Team',
name="Team",
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=32)),
('short_description', models.TextField(default=b'', max_length=100, blank=True)),
('privacy_level', models.PositiveIntegerField(default=0, choices=[[0, 'Private'], [1, 'Members only'], [2, 'Public']])),
('members', models.ManyToManyField(related_name='teams', to=settings.AUTH_USER_MODEL, blank=True)),
('owner', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE)),
(
"id",
models.AutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
("name", models.CharField(max_length=32)),
(
"short_description",
models.TextField(default=b"", max_length=100, blank=True),
),
(
"privacy_level",
models.PositiveIntegerField(
default=0,
choices=[[0, "Private"], [1, "Members only"], [2, "Public"]],
),
),
(
"members",
models.ManyToManyField(
related_name="teams", to=settings.AUTH_USER_MODEL, blank=True
),
),
(
"owner",
models.ForeignKey(
to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE
),
),
],
),
migrations.AlterUniqueTogether(
name='team',
unique_together=set([('owner', 'name')]),
name="team", unique_together=set([("owner", "name")]),
),
]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment