2017-03-30 21:55:57 -04:00
|
|
|
# -*- coding: utf-8 -*-
|
2017-04-03 14:00:15 -04:00
|
|
|
# Generated by Django 1.10.6 on 2017-04-03 15:55
|
2017-03-30 21:55:57 -04:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
import extras.models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('contenttypes', '0002_remove_content_type_name'),
|
|
|
|
('extras', '0004_topologymap_change_comma_to_semicolon'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='ImageAttachment',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('object_id', models.PositiveIntegerField()),
|
|
|
|
('image', models.ImageField(height_field=b'image_height', upload_to=extras.models.image_upload, width_field=b'image_width')),
|
|
|
|
('image_height', models.PositiveSmallIntegerField()),
|
|
|
|
('image_width', models.PositiveSmallIntegerField()),
|
|
|
|
('name', models.CharField(blank=True, max_length=50)),
|
|
|
|
('created', models.DateTimeField(auto_now_add=True)),
|
|
|
|
('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'ordering': ['name'],
|
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|