You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
863 B
28 lines
863 B
9 years ago
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.9.4 on 2016-03-24 12:34
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import main.medialibrary.models
|
||
|
import main.storages
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='MediaAsset',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('uuid_hex', models.CharField(editable=False, max_length=32)),
|
||
|
('original_file', models.FileField(storage=main.storages.ProtectedMediaAssetStorage(), upload_to=main.medialibrary.fields.get_upload_path)),
|
||
|
('name', models.CharField(max_length=50, verbose_name='name')),
|
||
|
],
|
||
|
),
|
||
|
]
|