2016-03-02 01:29:47 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.9.2 on 2016-03-02 01:22
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2016-01-09 18:49:38 +01:00
|
|
|
import django.db.models.deletion
|
2015-06-29 13:23:19 +02:00
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
import openslides.utils.models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2016-03-02 01:29:47 +01:00
|
|
|
initial = True
|
|
|
|
|
2015-06-29 13:23:19 +02:00
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Mediafile',
|
|
|
|
fields=[
|
2016-03-02 01:29:47 +01:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2016-01-09 18:49:38 +01:00
|
|
|
('mediafile', models.FileField(upload_to='file')),
|
2016-03-02 01:29:47 +01:00
|
|
|
('title', models.CharField(max_length=255, unique=True)),
|
2015-06-29 13:23:19 +02:00
|
|
|
('timestamp', models.DateTimeField(auto_now_add=True)),
|
2016-03-02 01:29:47 +01:00
|
|
|
('uploader', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
|
2015-06-29 13:23:19 +02:00
|
|
|
],
|
|
|
|
options={
|
2016-03-02 01:29:47 +01:00
|
|
|
'permissions': (('can_see', 'Can see the list of files'), ('can_upload', 'Can upload files'), ('can_manage', 'Can manage files')),
|
2016-01-09 18:49:38 +01:00
|
|
|
'default_permissions': (),
|
2015-06-29 13:23:19 +02:00
|
|
|
'ordering': ['title'],
|
|
|
|
},
|
|
|
|
bases=(openslides.utils.models.RESTModelMixin, models.Model),
|
|
|
|
),
|
|
|
|
]
|