Coverage for crateweb/consent/migrations/0008_auto_20170507_1218.py: 100%

5 statements  

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

1""" 

2crate_anon/crateweb/consent/migrations/0008_auto_20170507_1218.py 

3 

4=============================================================================== 

5 

6 Copyright (C) 2015, University of Cambridge, Department of Psychiatry. 

7 Created by Rudolf Cardinal (rnc1001@cam.ac.uk). 

8 

9 This file is part of CRATE. 

10 

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. 

15 

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. 

20 

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/>. 

23 

24=============================================================================== 

25 

26**Consent app, migration 0008.** 

27 

28""" 

29 

30# Generated by Django 1.10.5 on 2017-05-07 12:18 

31from __future__ import unicode_literals 

32 

33from django.db import migrations, models 

34 

35 

36class Migration(migrations.Migration): 

37 

38 dependencies = [ 

39 ("consent", "0007_auto_20170228_1052"), 

40 ] 

41 

42 operations = [ 

43 migrations.AlterField( 

44 model_name="consentmode", 

45 name="consent_mode", 

46 field=models.CharField( 

47 choices=[ 

48 ("red", "red"), 

49 ("yellow", "yellow"), 

50 ("green", "green"), 

51 ], 

52 default="", 

53 max_length=10, 

54 verbose_name="Consent mode (red/yellow/green)", 

55 ), 

56 ), 

57 migrations.AlterField( 

58 model_name="consentmode", 

59 name="source", 

60 field=models.CharField( 

61 default="crate_user_entry", 

62 max_length=20, 

63 verbose_name="Source of information", 

64 ), 

65 ), 

66 migrations.AlterField( 

67 model_name="leaflet", 

68 name="name", 

69 field=models.CharField( 

70 choices=[ 

71 ("cpft_tpir", "CPFT: Taking part in research [MANDATORY]"), 

72 ( 

73 "nihr_yhrsl", 

74 "NIHR: Your health records save lives " 

75 "[not currently used]", 

76 ), 

77 ( 

78 "cpft_trafficlight_choice", 

79 "CPFT: traffic-light choice decision form " 

80 "[not currently used: personalized version created " 

81 "instead]", 

82 ), 

83 ( 

84 "cpft_clinres", 

85 "CPFT: clinical research [not currently used]", 

86 ), 

87 ], 

88 max_length=50, 

89 unique=True, 

90 verbose_name="leaflet name", 

91 ), 

92 ), 

93 ]