|
20
|
1 |
# -*- coding: utf-8 -*- |
|
196
|
2 |
from __future__ import unicode_literals |
|
|
3 |
|
|
|
4 |
from django.db import models, migrations |
|
|
5 |
import metadatacomposer.models |
|
20
|
6 |
|
|
|
7 |
|
|
196
|
8 |
class Migration(migrations.Migration): |
|
20
|
9 |
|
|
196
|
10 |
dependencies = [ |
|
|
11 |
] |
|
20
|
12 |
|
|
196
|
13 |
operations = [ |
|
|
14 |
migrations.CreateModel( |
|
|
15 |
name='Image', |
|
|
16 |
fields=[ |
|
|
17 |
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
|
|
18 |
('image_file', models.ImageField(height_field=b'height', width_field=b'width', max_length=2048, upload_to=metadatacomposer.models.image_file_name)), |
|
|
19 |
('width', models.IntegerField()), |
|
|
20 |
('height', models.IntegerField()), |
|
|
21 |
('title', models.CharField(max_length=1024, null=True, blank=True)), |
|
|
22 |
('description', models.TextField(null=True, blank=True)), |
|
|
23 |
('creation_date', models.DateTimeField(auto_now_add=True)), |
|
|
24 |
('modification_date', models.DateTimeField(auto_now=True)), |
|
|
25 |
], |
|
|
26 |
options={ |
|
|
27 |
}, |
|
|
28 |
bases=(models.Model,), |
|
|
29 |
), |
|
|
30 |
] |