0005_auto_20160813_1116.py 751 Bytes
Newer Older
1
2
3
4
5
6
7
# -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-13 09:16
from __future__ import unicode_literals

from django.db import migrations, models
import utils.validators

Tom van Bussel's avatar
Tom van Bussel committed
8
9
10
11
def meetingdocument_upload_to(instance, filename):
    return 'documents/meetings/{}/files/{}'.format(instance.meeting.pk,
                                                   filename)

12
13
14
15
16
17
18
19
20
21
22

class Migration(migrations.Migration):

    dependencies = [
        ('documents', '0004_auto_20160725_2346'),
    ]

    operations = [
        migrations.AlterField(
            model_name='generalmeetingdocument',
            name='file',
Tom van Bussel's avatar
Tom van Bussel committed
23
            field=models.FileField(upload_to=meetingdocument_upload_to, validators=[utils.validators.validate_file_extension]),
24
25
        ),
    ]