32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.9.4 on 2016-03-21 19:29
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import fmartingrcom.apps.blog.models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('blog', '0002_auto_20160313_1051'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Attachment',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('filename', models.CharField(max_length=256)),
|
|
('sha1', models.CharField(max_length=40)),
|
|
('mimetype', models.CharField(blank=True, max_length=256, null=True)),
|
|
('file', models.FileField(upload_to=fmartingrcom.apps.blog.models.attachment_upload_to)),
|
|
('creation_date', models.DateTimeField(auto_now_add=True)),
|
|
('modification_date', models.DateTimeField(auto_now=True)),
|
|
],
|
|
options={
|
|
'verbose_name': 'Attachment',
|
|
},
|
|
),
|
|
]
|