Coverage for crateweb/consent/migrations/0013_auto_20181223_1124.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-08-27 10:34 -0500

1# Generated by Django 2.1.2 on 2018-12-23 11:24 

2 

3from cardinal_pythonlib.django.fields.restrictedcontentfile import ( 

4 ContentTypeRestrictedFileField, 

5) 

6from django.db import migrations, models 

7 

8from crate_anon.crateweb.consent.models import ( 

9 leaflet_upload_to, 

10 study_details_upload_to, 

11 study_form_upload_to, 

12) 

13from crate_anon.crateweb.consent.storage import CustomFileSystemStorage 

14 

15_DEFAULT_LOCATION = "/srv/crate_filestorage" 

16 

17 

18class Migration(migrations.Migration): 

19 

20 dependencies = [ 

21 ("consent", "0012_auto_20181102_1335"), 

22 ] 

23 

24 operations = [ 

25 migrations.AddField( 

26 model_name="contactrequest", 

27 name="clinician_email", 

28 field=models.TextField(default=None, null=True), 

29 ), 

30 migrations.AddField( 

31 model_name="contactrequest", 

32 name="clinician_initiated", 

33 field=models.BooleanField(default=False), 

34 ), 

35 migrations.AlterField( 

36 model_name="emailattachment", 

37 name="file", 

38 field=models.FileField( 

39 storage=CustomFileSystemStorage( 

40 base_url="download_privatestorage", 

41 location=_DEFAULT_LOCATION, 

42 ), 

43 upload_to="", 

44 ), 

45 ), 

46 migrations.AlterField( 

47 model_name="leaflet", 

48 name="pdf", 

49 field=ContentTypeRestrictedFileField( 

50 blank=True, 

51 storage=CustomFileSystemStorage( 

52 base_url="download_privatestorage", 

53 location=_DEFAULT_LOCATION, 

54 ), 

55 upload_to=leaflet_upload_to, 

56 ), 

57 ), 

58 migrations.AlterField( 

59 model_name="letter", 

60 name="pdf", 

61 field=models.FileField( 

62 storage=CustomFileSystemStorage( 

63 base_url="download_privatestorage", 

64 location=_DEFAULT_LOCATION, 

65 ), 

66 upload_to="", 

67 ), 

68 ), 

69 migrations.AlterField( 

70 model_name="study", 

71 name="study_details_pdf", 

72 field=ContentTypeRestrictedFileField( 

73 blank=True, 

74 storage=CustomFileSystemStorage( 

75 base_url="download_privatestorage", 

76 location=_DEFAULT_LOCATION, 

77 ), 

78 upload_to=study_details_upload_to, 

79 ), 

80 ), 

81 migrations.AlterField( 

82 model_name="study", 

83 name="subject_form_template_pdf", 

84 field=ContentTypeRestrictedFileField( 

85 blank=True, 

86 storage=CustomFileSystemStorage( 

87 base_url="download_privatestorage", 

88 location=_DEFAULT_LOCATION, 

89 ), 

90 upload_to=study_form_upload_to, 

91 ), 

92 ), 

93 ]