31 lines
995 B
Python
31 lines
995 B
Python
# Generated by Django 2.2.4 on 2019-08-27 15:40
|
|
|
|
from django.db import migrations, models
|
|
import django.utils.timezone
|
|
import easy_thumbnails.fields
|
|
import utils.methods
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Image',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('created', models.DateTimeField(default=django.utils.timezone.now, editable=False, verbose_name='Date created')),
|
|
('modified', models.DateTimeField(auto_now=True, verbose_name='Date updated')),
|
|
('image', easy_thumbnails.fields.ThumbnailerImageField(upload_to=utils.methods.image_path, verbose_name='Image file')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Image',
|
|
'verbose_name_plural': 'Images',
|
|
},
|
|
),
|
|
]
|