28 lines
814 B
Python
28 lines
814 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.db import models, migrations
|
||
|
from django_summernote.utils import uploaded_filepath
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Attachment',
|
||
|
fields=[
|
||
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||
|
('name', models.CharField(max_length=255, null=True, blank=True)),
|
||
|
('file', models.FileField(upload_to=uploaded_filepath)),
|
||
|
('uploaded', models.DateTimeField(auto_now_add=True)),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
bases=(models.Model,),
|
||
|
),
|
||
|
]
|