Coverage for crateweb/consent/migrations/0016_auto_20190212_1118.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.5 on 2019-02-12 11:18 

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 = "C:/srv/crate/crate_filestorage" 

16 

17 

18class Migration(migrations.Migration): 

19 

20 dependencies = [ 

21 ("consent", "0015_auto_20190104_1255"), 

22 ] 

23 

24 operations = [ 

25 migrations.AlterField( 

26 model_name="emailattachment", 

27 name="file", 

28 field=models.FileField( 

29 storage=CustomFileSystemStorage( 

30 base_url="download_privatestorage", 

31 location=_DEFAULT_LOCATION, 

32 ), 

33 upload_to="", 

34 ), 

35 ), 

36 migrations.AlterField( 

37 model_name="leaflet", 

38 name="pdf", 

39 field=ContentTypeRestrictedFileField( 

40 blank=True, 

41 storage=CustomFileSystemStorage( 

42 base_url="download_privatestorage", 

43 location=_DEFAULT_LOCATION, 

44 ), 

45 upload_to=leaflet_upload_to, 

46 ), 

47 ), 

48 migrations.AlterField( 

49 model_name="letter", 

50 name="pdf", 

51 field=models.FileField( 

52 storage=CustomFileSystemStorage( 

53 base_url="download_privatestorage", 

54 location=_DEFAULT_LOCATION, 

55 ), 

56 upload_to="", 

57 ), 

58 ), 

59 migrations.AlterField( 

60 model_name="study", 

61 name="study_details_pdf", 

62 field=ContentTypeRestrictedFileField( 

63 blank=True, 

64 storage=CustomFileSystemStorage( 

65 base_url="download_privatestorage", 

66 location=_DEFAULT_LOCATION, 

67 ), 

68 upload_to=study_details_upload_to, 

69 ), 

70 ), 

71 migrations.AlterField( 

72 model_name="study", 

73 name="subject_form_template_pdf", 

74 field=ContentTypeRestrictedFileField( 

75 blank=True, 

76 storage=CustomFileSystemStorage( 

77 base_url="download_privatestorage", 

78 location=_DEFAULT_LOCATION, 

79 ), 

80 upload_to=study_form_upload_to, 

81 ), 

82 ), 

83 ]