Coverage for crateweb/consent/migrations/0005_auto_20170203_1348.py: 100%
8 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-08-27 10:34 -0500
« prev ^ index » next coverage.py v7.8.0, created at 2025-08-27 10:34 -0500
1"""
2crate_anon/crateweb/consent/migrations/0005_auto_20170203_1348.py
4===============================================================================
6 Copyright (C) 2015, University of Cambridge, Department of Psychiatry.
7 Created by Rudolf Cardinal (rnc1001@cam.ac.uk).
9 This file is part of CRATE.
11 CRATE is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 CRATE is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with CRATE. If not, see <https://www.gnu.org/licenses/>.
24===============================================================================
26**Consent app, migration 0005.**
28"""
30# Generated by Django 1.10.5 on 2017-02-03 13:48
31from __future__ import unicode_literals
33from cardinal_pythonlib.django.fields.restrictedcontentfile import (
34 ContentTypeRestrictedFileField,
35)
36from django.db import migrations, models
38from crate_anon.crateweb.consent.models import (
39 leaflet_upload_to,
40 study_details_upload_to,
41 study_form_upload_to,
42)
43from crate_anon.crateweb.consent.storage import CustomFileSystemStorage
46class Migration(migrations.Migration):
48 dependencies = [
49 ("consent", "0004_auto_20160703_1530"),
50 ]
52 operations = [
53 migrations.AlterField(
54 model_name="emailattachment",
55 name="file",
56 field=models.FileField(
57 storage=CustomFileSystemStorage(
58 base_url="download_privatestorage",
59 location="C:/srv/crate_filestorage",
60 ),
61 upload_to="",
62 ),
63 ),
64 migrations.AlterField(
65 model_name="leaflet",
66 name="pdf",
67 field=ContentTypeRestrictedFileField(
68 blank=True,
69 storage=CustomFileSystemStorage(
70 base_url="download_privatestorage",
71 location="C:/srv/crate_filestorage",
72 ),
73 upload_to=leaflet_upload_to,
74 ),
75 ),
76 migrations.AlterField(
77 model_name="letter",
78 name="pdf",
79 field=models.FileField(
80 storage=CustomFileSystemStorage(
81 base_url="download_privatestorage",
82 location="C:/srv/crate_filestorage",
83 ),
84 upload_to="",
85 ),
86 ),
87 migrations.AlterField(
88 model_name="study",
89 name="study_details_pdf",
90 field=ContentTypeRestrictedFileField(
91 blank=True,
92 storage=CustomFileSystemStorage(
93 base_url="download_privatestorage",
94 location="C:/srv/crate_filestorage",
95 ),
96 upload_to=study_details_upload_to,
97 ),
98 ),
99 migrations.AlterField(
100 model_name="study",
101 name="subject_form_template_pdf",
102 field=ContentTypeRestrictedFileField(
103 blank=True,
104 storage=CustomFileSystemStorage(
105 base_url="download_privatestorage",
106 location="C:/srv/crate_filestorage",
107 ),
108 upload_to=study_form_upload_to,
109 ),
110 ),
111 ]