31 lines
1.2 KiB
Python
31 lines
1.2 KiB
Python
# Generated by Django 2.0 on 2018-03-17 20:50
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import imagekit.models.fields
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('events', '0016_make_searchable_uri_unique'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='EventPhoto',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('title', models.CharField(max_length=256)),
|
|
('caption', models.TextField(blank=True, null=True)),
|
|
('src', models.ImageField(upload_to='event_photos')),
|
|
('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='photos', to='events.Event')),
|
|
],
|
|
),
|
|
migrations.AlterField(
|
|
model_name='userprofile',
|
|
name='avatar',
|
|
field=imagekit.models.fields.ProcessedImageField(default='http://www.gravatar.com/avatar/00000000000000000000000000000000.jpg?d=mm', upload_to='avatars', verbose_name='Photo Image'),
|
|
preserve_default=False,
|
|
),
|
|
]
|