2018-05-30 03:14:36 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.11.6 on 2018-05-26 15:47
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
2019-08-19 21:53:34 +00:00
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations
|
|
|
|
from django.db import models
|
2018-05-30 03:14:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2019-08-19 21:37:32 +00:00
|
|
|
("files", "0002_file_user"),
|
2018-05-30 03:14:36 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2019-08-19 21:37:32 +00:00
|
|
|
name="ImageFile",
|
2018-05-30 03:14:36 +00:00
|
|
|
fields=[
|
2019-08-19 21:37:32 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("file", models.FileField(upload_to=".")),
|
|
|
|
(
|
|
|
|
"caption",
|
|
|
|
models.CharField(
|
|
|
|
default=None,
|
|
|
|
max_length=240,
|
|
|
|
null=True,
|
|
|
|
verbose_name="Image caption",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"credit",
|
|
|
|
models.CharField(
|
|
|
|
default=None,
|
|
|
|
max_length=240,
|
|
|
|
null=True,
|
|
|
|
verbose_name="Image credit",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"user",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="imagefile",
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
),
|
|
|
|
),
|
2018-05-30 03:14:36 +00:00
|
|
|
],
|
2019-08-19 21:37:32 +00:00
|
|
|
options={"abstract": False},
|
2018-05-30 03:14:36 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
2019-08-19 21:37:32 +00:00
|
|
|
model_name="file",
|
|
|
|
name="user",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="file",
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
),
|
2018-05-30 03:14:36 +00:00
|
|
|
),
|
|
|
|
]
|