ojuso-map/apps/files/migrations/0003_auto_20180526_1547.py

71 lines
2.1 KiB
Python
Raw Normal View History

# -*- 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
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
2019-08-19 21:37:32 +00:00
("files", "0002_file_user"),
]
operations = [
migrations.CreateModel(
2019-08-19 21:37:32 +00:00
name="ImageFile",
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,
),
),
],
2019-08-19 21:37:32 +00:00
options={"abstract": False},
),
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,
),
),
]