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 @@ ...@@ -27,8 +27,9 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings from django.conf import settings
from django.db import migrations
from django.db import models
class Migration(migrations.Migration): class Migration(migrations.Migration):
...@@ -39,18 +40,44 @@ class Migration(migrations.Migration): ...@@ -39,18 +40,44 @@ class Migration(migrations.Migration):
operations = [ operations = [
migrations.CreateModel( migrations.CreateModel(
name='Team', name="Team",
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), (
('name', models.CharField(max_length=32)), "id",
('short_description', models.TextField(default=b'', max_length=100, blank=True)), models.AutoField(
('privacy_level', models.PositiveIntegerField(default=0, choices=[[0, 'Private'], [1, 'Members only'], [2, 'Public']])), verbose_name="ID",
('members', models.ManyToManyField(related_name='teams', to=settings.AUTH_USER_MODEL, blank=True)), serialize=False,
('owner', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE)), 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( migrations.AlterUniqueTogether(
name='team', name="team", unique_together=set([("owner", "name")]),
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