JS-P04/app/migrations/0002_auto_20200603_2116.py
Kacper Donat 3a649df550 Whole app
2020-06-08 22:46:01 +02:00

47 lines
1.5 KiB
Python

# Generated by Django 3.0.7 on 2020-06-03 21:16
import app.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('app', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='photo',
options={'verbose_name': 'photo', 'verbose_name_plural': 'photos'},
),
migrations.AddField(
model_name='photo',
name='user',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='photo',
name='description',
field=models.TextField(blank=True, null=True, verbose_name='Description'),
),
migrations.AlterField(
model_name='photo',
name='photo',
field=models.ImageField(upload_to=app.models.user_directory_path, verbose_name='Photo'),
),
migrations.AlterField(
model_name='photo',
name='taken_on',
field=models.DateField(blank=True, null=True, verbose_name='Taken on'),
),
migrations.AlterField(
model_name='photo',
name='title',
field=models.CharField(max_length=255, verbose_name='Title'),
),
]