Sith/sas/migrations/0002_auto_20161119_1241.py

51 lines
1.5 KiB
Python
Raw Permalink Normal View History

from __future__ import unicode_literals
import django.db.models.deletion
2024-06-24 11:07:36 +00:00
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
2018-10-04 19:29:19 +00:00
("sas", "0001_initial"),
]
operations = [
migrations.CreateModel(
2018-10-04 19:29:19 +00:00
name="PeoplePictureRelation",
fields=[
2018-10-04 19:29:19 +00:00
(
"id",
models.AutoField(
primary_key=True,
verbose_name="ID",
auto_created=True,
serialize=False,
),
),
(
"picture",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="people",
to="sas.Picture",
verbose_name="picture",
2018-10-04 19:29:19 +00:00
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
2018-10-04 19:29:19 +00:00
related_name="pictures",
to=settings.AUTH_USER_MODEL,
verbose_name="user",
),
),
],
),
migrations.AlterUniqueTogether(
2024-06-27 13:00:37 +00:00
name="peoplepicturerelation", unique_together={("user", "picture")}
),
]