Initial commit from ZIP
This commit is contained in:
commit
378d4692a9
454 files changed
+40367
No files matched your search
@@ -0,0 +1,49 @@
|
||||
# Generated by Django 2.2.8 on 2019-12-18 13:54
|
||||
|
||||
import rules.contrib.models
|
||||
from django.db import migrations, models
|
||||
|
||||
import outbo.apps.core.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
initial = True
|
||||
|
||||
dependencies = []
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="FinalBrief",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
(
|
||||
"created_at",
|
||||
outbo.apps.core.fields.CreationDateTimeField(
|
||||
auto_now_add=True, verbose_name="Created at"
|
||||
),
|
||||
),
|
||||
(
|
||||
"updated_at",
|
||||
outbo.apps.core.fields.ModificationDateTimeField(
|
||||
auto_now=True, verbose_name="Updated at"
|
||||
),
|
||||
),
|
||||
(
|
||||
"deleted_at",
|
||||
outbo.apps.core.fields.RemovalDateTimeField(
|
||||
blank=True, editable=False, null=True, verbose_name="Deleted at"
|
||||
),
|
||||
),
|
||||
],
|
||||
options={"abstract": False,},
|
||||
bases=(rules.contrib.models.RulesModelMixin, models.Model),
|
||||
),
|
||||
]
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
# Generated by Django 2.2.8 on 2019-12-18 14:03
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("final_photobriefing", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(model_name="finalbrief", name="id",),
|
||||
]
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
# Generated by Django 2.2.8 on 2019-12-18 14:03
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("photobriefing", "0001_initial"),
|
||||
("final_photobriefing", "0002_remove_finalbrief_id"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="finalbrief",
|
||||
name="brief",
|
||||
field=models.ForeignKey(
|
||||
default=0,
|
||||
on_delete=django.db.models.deletion.PROTECT,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
to="photobriefing.Brief",
|
||||
),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 2.2.8 on 2019-12-18 14:05
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("final_photobriefing", "0003_finalbrief_brief"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="finalbrief",
|
||||
name="brief",
|
||||
field=models.OneToOneField(
|
||||
on_delete=django.db.models.deletion.PROTECT,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
to="photobriefing.Brief",
|
||||
),
|
||||
),
|
||||
]
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
# Generated by Django 2.2.8 on 2019-12-18 14:06
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("final_photobriefing", "0004_auto_20191218_1505"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="finalbrief",
|
||||
name="brief",
|
||||
field=models.OneToOneField(
|
||||
on_delete=django.db.models.deletion.PROTECT,
|
||||
primary_key=True,
|
||||
related_name="final",
|
||||
related_query_name="final",
|
||||
serialize=False,
|
||||
to="photobriefing.Brief",
|
||||
),
|
||||
),
|
||||
]
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
# Generated by Django 2.2.8 on 2019-12-19 08:48
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import outbo.apps.core.fields
|
||||
import outbo.apps.final_photobriefing.enums
|
||||
import outbo.apps.final_photobriefing.models
|
||||
import rules.contrib.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("final_photobriefing", "0005_auto_20191218_1506"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="FinalBriefPhoto",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
(
|
||||
"created_at",
|
||||
outbo.apps.core.fields.CreationDateTimeField(
|
||||
auto_now_add=True, verbose_name="Created at"
|
||||
),
|
||||
),
|
||||
(
|
||||
"updated_at",
|
||||
outbo.apps.core.fields.ModificationDateTimeField(
|
||||
auto_now=True, verbose_name="Updated at"
|
||||
),
|
||||
),
|
||||
(
|
||||
"deleted_at",
|
||||
outbo.apps.core.fields.RemovalDateTimeField(
|
||||
blank=True, editable=False, null=True, verbose_name="Deleted at"
|
||||
),
|
||||
),
|
||||
(
|
||||
"file",
|
||||
models.FileField(
|
||||
upload_to=outbo.apps.final_photobriefing.models.FormatFinalPhotoBriefPhotoFilename()
|
||||
),
|
||||
),
|
||||
(
|
||||
"category",
|
||||
models.CharField(
|
||||
choices=[
|
||||
(
|
||||
outbo.apps.final_photobriefing.enums.PhotoType(
|
||||
"<invalid>"
|
||||
),
|
||||
"<invalid>",
|
||||
),
|
||||
(
|
||||
outbo.apps.final_photobriefing.enums.PhotoType(
|
||||
"arrangement"
|
||||
),
|
||||
"arrangement",
|
||||
),
|
||||
(
|
||||
outbo.apps.final_photobriefing.enums.PhotoType(
|
||||
"clipping"
|
||||
),
|
||||
"clipping",
|
||||
),
|
||||
(
|
||||
outbo.apps.final_photobriefing.enums.PhotoType(
|
||||
"packshot"
|
||||
),
|
||||
"packshot",
|
||||
),
|
||||
(
|
||||
outbo.apps.final_photobriefing.enums.PhotoType(
|
||||
"extraPhoto"
|
||||
),
|
||||
"extraPhoto",
|
||||
),
|
||||
],
|
||||
max_length=30,
|
||||
),
|
||||
),
|
||||
(
|
||||
"brief",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
to="final_photobriefing.FinalBrief",
|
||||
),
|
||||
),
|
||||
],
|
||||
bases=(rules.contrib.models.RulesModelMixin, models.Model),
|
||||
),
|
||||
]
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
# Generated by Django 2.2.8 on 2019-12-20 10:14
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import outbo.apps.final_photobriefing.enums
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("final_photobriefing", "0006_finalbriefphoto"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(model_name="finalbriefphoto", name="category",),
|
||||
migrations.AddField(
|
||||
model_name="finalbriefphoto",
|
||||
name="type",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
(
|
||||
outbo.apps.final_photobriefing.enums.PhotoType("<invalid>"),
|
||||
"<invalid>",
|
||||
),
|
||||
(
|
||||
outbo.apps.final_photobriefing.enums.PhotoType("arrangement"),
|
||||
"arrangement",
|
||||
),
|
||||
(
|
||||
outbo.apps.final_photobriefing.enums.PhotoType("clipping"),
|
||||
"clipping",
|
||||
),
|
||||
(
|
||||
outbo.apps.final_photobriefing.enums.PhotoType("packshot"),
|
||||
"packshot",
|
||||
),
|
||||
(
|
||||
outbo.apps.final_photobriefing.enums.PhotoType("extraPhoto"),
|
||||
"extraPhoto",
|
||||
),
|
||||
],
|
||||
default=outbo.apps.final_photobriefing.enums.PhotoType("<invalid>"),
|
||||
max_length=30,
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="finalbriefphoto",
|
||||
name="brief",
|
||||
field=models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="photos",
|
||||
related_query_name="photo",
|
||||
to="final_photobriefing.FinalBrief",
|
||||
),
|
||||
),
|
||||
]
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
# Generated by Django 2.2.10 on 2020-05-25 08:25
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("final_photobriefing", "0007_auto_20191220_1114"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="finalbrief",
|
||||
name="brief",
|
||||
field=models.OneToOneField(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
primary_key=True,
|
||||
related_name="final",
|
||||
related_query_name="final",
|
||||
serialize=False,
|
||||
to="photobriefing.Brief",
|
||||
),
|
||||
),
|
||||
]
|
||||
Whitespace-only changes.
Reference in new issue
Block a user