mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
All: Apply Black coding rules
This commit is contained in:
@ -6,27 +6,13 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0006_auto_20161108_1703'),
|
||||
]
|
||||
dependencies = [("core", "0006_auto_20161108_1703")]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Album',
|
||||
fields=[
|
||||
],
|
||||
options={
|
||||
'proxy': True,
|
||||
},
|
||||
bases=('core.sithfile',),
|
||||
name="Album", fields=[], options={"proxy": True}, bases=("core.sithfile",)
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Picture',
|
||||
fields=[
|
||||
],
|
||||
options={
|
||||
'proxy': True,
|
||||
},
|
||||
bases=('core.sithfile',),
|
||||
name="Picture", fields=[], options={"proxy": True}, bases=("core.sithfile",)
|
||||
),
|
||||
]
|
||||
|
@ -9,20 +9,39 @@ class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('sas', '0001_initial'),
|
||||
("sas", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='PeoplePictureRelation',
|
||||
name="PeoplePictureRelation",
|
||||
fields=[
|
||||
('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
|
||||
('picture', models.ForeignKey(related_name='people', to='sas.Picture', verbose_name='picture')),
|
||||
('user', models.ForeignKey(related_name='pictures', to=settings.AUTH_USER_MODEL, verbose_name='user')),
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
primary_key=True,
|
||||
verbose_name="ID",
|
||||
auto_created=True,
|
||||
serialize=False,
|
||||
),
|
||||
),
|
||||
(
|
||||
"picture",
|
||||
models.ForeignKey(
|
||||
related_name="people", to="sas.Picture", verbose_name="picture"
|
||||
),
|
||||
),
|
||||
(
|
||||
"user",
|
||||
models.ForeignKey(
|
||||
related_name="pictures",
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
verbose_name="user",
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='peoplepicturerelation',
|
||||
unique_together=set([('user', 'picture')]),
|
||||
name="peoplepicturerelation", unique_together=set([("user", "picture")])
|
||||
),
|
||||
]
|
||||
|
Reference in New Issue
Block a user