##// END OF EJS Templates
Allow pasting files from clipboard. Alpha release, removing or previewing images in the form not implemented yet
Allow pasting files from clipboard. Alpha release, removing or previewing images in the form not implemented yet

File last commit:

r1368:3a697667 default
r1985:7b9ffc10 default
Show More
0023_auto_20150818_1026.py
29 lines | 898 B | text/x-python | PythonLexer
/ boards / migrations / 0023_auto_20150818_1026.py
neko259
Added support for different attachment types
r1273 # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import boards.models.attachment
class Migration(migrations.Migration):
dependencies = [
('boards', '0022_auto_20150812_1819'),
]
operations = [
migrations.CreateModel(
name='Attachment',
fields=[
('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
neko259
Deduplicated upload_to method for images and file attachments
r1368 ('file', models.FileField()),
neko259
Added support for different attachment types
r1273 ('mimetype', models.CharField(max_length=50)),
('hash', models.CharField(max_length=36)),
],
),
migrations.AddField(
model_name='post',
name='attachments',
field=models.ManyToManyField(blank=True, null=True, related_name='attachment_posts', to='boards.Attachment'),
),
]