Initial commit from ZIP
This commit is contained in:
commit
378d4692a9
454 files changed
+40367
No files matched your search
+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),
|
||||
),
|
||||
]
|
||||
Reference in new issue
Block a user