1111class Migration (migrations .Migration ):
1212
1313 initial = True
14- QUESTIONS_RESPONSESET = 'questions.responseset'
15- PREFER_NOT_TO_SAY = 'Prefer not to say'
16- QUESTIONS_TOBACCOMOKINGSHISTORY = 'questions.tobaccosmokinghistory'
1714
1815 dependencies = [
1916 ]
@@ -55,7 +52,7 @@ class Migration(migrations.Migration):
5552 ('created_at' , models .DateTimeField (auto_now_add = True )),
5653 ('updated_at' , models .DateTimeField (auto_now = True )),
5754 ('value' , django .contrib .postgres .fields .ArrayField (base_field = models .CharField (choices = [('P' , 'Pneumonia' ), ('E' , 'Emphysema' ), ('B' , 'Bronchitis' ), ('T' , 'Tuberculosis (TB)' ), ('C' , 'Chronic obstructive pulmonary disease (COPD)' ), ('N' , 'No, I have not had any of these respiratory conditions' )], max_length = 1 ), size = None , validators = [lung_cancer_screening .questions .models .validators .singleton_option .validate_singleton_option ])),
58- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'respiratory_conditions_response' , to = QUESTIONS_RESPONSESET )),
55+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'respiratory_conditions_response' , to = 'questions.responseset' )),
5956 ],
6057 options = {
6158 'abstract' : False ,
@@ -68,7 +65,7 @@ class Migration(migrations.Migration):
6865 ('created_at' , models .DateTimeField (auto_now_add = True )),
6966 ('updated_at' , models .DateTimeField (auto_now = True )),
7067 ('value' , models .CharField (choices = [('Y' , 'Yes, they were younger than 60' ), ('N' , 'No, they were 60 or older' ), ('U' , 'I do not know' )], max_length = 1 )),
71- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'relatives_age_when_diagnosed' , to = QUESTIONS_RESPONSESET )),
68+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'relatives_age_when_diagnosed' , to = 'questions.responseset' )),
7269 ],
7370 options = {
7471 'abstract' : False ,
@@ -82,7 +79,7 @@ class Migration(migrations.Migration):
8279 ('updated_at' , models .DateTimeField (auto_now = True )),
8380 ('value' , models .BooleanField ()),
8481 ('duration_years' , models .IntegerField (blank = True , null = True , validators = [django .core .validators .MinValueValidator (1 , message = 'The number of years you stopped smoking for must be at least 1' )])),
85- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'periods_when_you_stopped_smoking_response' , to = QUESTIONS_RESPONSESET )),
82+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'periods_when_you_stopped_smoking_response' , to = 'questions.responseset' )),
8683 ],
8784 options = {
8885 'abstract' : False ,
@@ -96,7 +93,7 @@ class Migration(migrations.Migration):
9693 ('updated_at' , models .DateTimeField (auto_now = True )),
9794 ('metric' , models .PositiveIntegerField (blank = True , null = True , validators = [django .core .validators .MinValueValidator (1397 , message = 'Height must be between 139.7cm and 243.8 cm' ), django .core .validators .MaxValueValidator (2438 , message = 'Height must be between 139.7cm and 243.8 cm' )])),
9895 ('imperial' , models .PositiveIntegerField (blank = True , null = True , validators = [django .core .validators .MinValueValidator (55 , message = 'Height must be between 4 feet 7 inches and 8 feet' ), django .core .validators .MaxValueValidator (96 , message = 'Height must be between 4 feet 7 inches and 8 feet' )])),
99- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'height_response' , to = QUESTIONS_RESPONSESET )),
96+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'height_response' , to = 'questions.responseset' )),
10097 ],
10198 options = {
10299 'abstract' : False ,
@@ -109,7 +106,7 @@ class Migration(migrations.Migration):
109106 ('created_at' , models .DateTimeField (auto_now_add = True )),
110107 ('updated_at' , models .DateTimeField (auto_now = True )),
111108 ('value' , models .IntegerField (choices = [(0 , 'Yes, I currently smoke' ), (1 , 'Yes, I used to smoke' ), (2 , 'Yes, but I have smoked fewer than 100 cigarettes in my lifetime' ), (3 , 'No, I have never smoked' )])),
112- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'have_you_ever_smoked_response' , to = QUESTIONS_RESPONSESET )),
109+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'have_you_ever_smoked_response' , to = 'questions.responseset' )),
113110 ],
114111 options = {
115112 'abstract' : False ,
@@ -121,8 +118,8 @@ class Migration(migrations.Migration):
121118 ('id' , models .BigAutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
122119 ('created_at' , models .DateTimeField (auto_now_add = True )),
123120 ('updated_at' , models .DateTimeField (auto_now = True )),
124- ('value' , models .CharField (choices = [('F' , 'Female' ), ('M' , 'Male' ), ('N' , 'Non-binary' ), ('P' , PREFER_NOT_TO_SAY ), ('G' , 'How I describe myself may not match my GP record' )], max_length = 1 )),
125- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'gender_response' , to = QUESTIONS_RESPONSESET )),
121+ ('value' , models .CharField (choices = [('F' , 'Female' ), ('M' , 'Male' ), ('N' , 'Non-binary' ), ('P' , 'Prefer not to say' ), ('G' , 'How I describe myself may not match my GP record' )], max_length = 1 )),
122+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'gender_response' , to = 'questions.responseset' )),
126123 ],
127124 options = {
128125 'abstract' : False ,
@@ -135,7 +132,7 @@ class Migration(migrations.Migration):
135132 ('created_at' , models .DateTimeField (auto_now_add = True )),
136133 ('updated_at' , models .DateTimeField (auto_now = True )),
137134 ('value' , models .CharField (choices = [('Y' , 'Yes' ), ('N' , 'No' ), ('U' , 'I do not know' )], max_length = 1 )),
138- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'family_history_lung_cancer' , to = QUESTIONS_RESPONSESET )),
135+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'family_history_lung_cancer' , to = 'questions.responseset' )),
139136 ],
140137 options = {
141138 'abstract' : False ,
@@ -147,8 +144,8 @@ class Migration(migrations.Migration):
147144 ('id' , models .BigAutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
148145 ('created_at' , models .DateTimeField (auto_now_add = True )),
149146 ('updated_at' , models .DateTimeField (auto_now = True )),
150- ('value' , models .CharField (choices = [('A' , 'Asian or Asian British' ), ('B' , 'Black, African, Caribbean or Black British' ), ('M' , 'Mixed or multiple ethnic groups' ), ('W' , 'White' ), ('O' , 'Other ethnic group' ), ('N' , PREFER_NOT_TO_SAY )], max_length = 1 )),
151- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'ethnicity_response' , to = QUESTIONS_RESPONSESET )),
147+ ('value' , models .CharField (choices = [('A' , 'Asian or Asian British' ), ('B' , 'Black, African, Caribbean or Black British' ), ('M' , 'Mixed or multiple ethnic groups' ), ('W' , 'White' ), ('O' , 'Other ethnic group' ), ('N' , 'Prefer not to say' )], max_length = 1 )),
148+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'ethnicity_response' , to = 'questions.responseset' )),
152149 ],
153150 options = {
154151 'abstract' : False ,
@@ -160,8 +157,8 @@ class Migration(migrations.Migration):
160157 ('id' , models .BigAutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
161158 ('created_at' , models .DateTimeField (auto_now_add = True )),
162159 ('updated_at' , models .DateTimeField (auto_now = True )),
163- ('value' , django .contrib .postgres .fields .ArrayField (base_field = models .CharField (choices = [('X' , 'I finished school before the age of 15' ), ('G' , 'GCSEs' ), ('A' , 'A-levels' ), ('F' , 'Further education' ), ('B' , "Bachelor's degree" ), ('P' , 'Postgraduate degree' ), ('N' , PREFER_NOT_TO_SAY )], max_length = 1 ), size = None , validators = [lung_cancer_screening .questions .models .validators .singleton_option .validate_singleton_option ])),
164- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'education_response' , to = QUESTIONS_RESPONSESET )),
160+ ('value' , django .contrib .postgres .fields .ArrayField (base_field = models .CharField (choices = [('X' , 'I finished school before the age of 15' ), ('G' , 'GCSEs' ), ('A' , 'A-levels' ), ('F' , 'Further education' ), ('B' , "Bachelor's degree" ), ('P' , 'Postgraduate degree' ), ('N' , 'Prefer not to say' )], max_length = 1 ), size = None , validators = [lung_cancer_screening .questions .models .validators .singleton_option .validate_singleton_option ])),
161+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'education_response' , to = 'questions.responseset' )),
165162 ],
166163 options = {
167164 'abstract' : False ,
@@ -174,7 +171,7 @@ class Migration(migrations.Migration):
174171 ('created_at' , models .DateTimeField (auto_now_add = True )),
175172 ('updated_at' , models .DateTimeField (auto_now = True )),
176173 ('value' , models .DateField ()),
177- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'date_of_birth_response' , to = QUESTIONS_RESPONSESET )),
174+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'date_of_birth_response' , to = 'questions.responseset' )),
178175 ],
179176 options = {
180177 'abstract' : False ,
@@ -187,7 +184,7 @@ class Migration(migrations.Migration):
187184 ('created_at' , models .DateTimeField (auto_now_add = True )),
188185 ('updated_at' , models .DateTimeField (auto_now = True )),
189186 ('value' , models .BooleanField ()),
190- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'check_need_appointment_response' , to = QUESTIONS_RESPONSESET )),
187+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'check_need_appointment_response' , to = 'questions.responseset' )),
191188 ],
192189 options = {
193190 'abstract' : False ,
@@ -200,7 +197,7 @@ class Migration(migrations.Migration):
200197 ('created_at' , models .DateTimeField (auto_now_add = True )),
201198 ('updated_at' , models .DateTimeField (auto_now = True )),
202199 ('value' , models .BooleanField ()),
203- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'cancer_diagnosis_response' , to = QUESTIONS_RESPONSESET )),
200+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'cancer_diagnosis_response' , to = 'questions.responseset' )),
204201 ],
205202 options = {
206203 'abstract' : False ,
@@ -213,7 +210,7 @@ class Migration(migrations.Migration):
213210 ('created_at' , models .DateTimeField (auto_now_add = True )),
214211 ('updated_at' , models .DateTimeField (auto_now = True )),
215212 ('value' , models .BooleanField ()),
216- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'asbestos_exposure_response' , to = QUESTIONS_RESPONSESET )),
213+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'asbestos_exposure_response' , to = 'questions.responseset' )),
217214 ],
218215 options = {
219216 'abstract' : False ,
@@ -226,7 +223,7 @@ class Migration(migrations.Migration):
226223 ('created_at' , models .DateTimeField (auto_now_add = True )),
227224 ('updated_at' , models .DateTimeField (auto_now = True )),
228225 ('value' , models .PositiveIntegerField (validators = [django .core .validators .MinValueValidator (1 , message = 'The age you started smoking must be between 1 and your current age' )])),
229- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'age_when_started_smoking_response' , to = QUESTIONS_RESPONSESET )),
226+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'age_when_started_smoking_response' , to = 'questions.responseset' )),
230227 ],
231228 options = {
232229 'abstract' : False ,
@@ -239,7 +236,7 @@ class Migration(migrations.Migration):
239236 ('created_at' , models .DateTimeField (auto_now_add = True )),
240237 ('updated_at' , models .DateTimeField (auto_now = True )),
241238 ('value' , models .CharField (choices = [('F' , 'Female' ), ('M' , 'Male' ), ('I' , 'Intersex' )], max_length = 1 )),
242- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'sex_at_birth_response' , to = QUESTIONS_RESPONSESET )),
239+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'sex_at_birth_response' , to = 'questions.responseset' )),
243240 ],
244241 options = {
245242 'abstract' : False ,
@@ -252,7 +249,7 @@ class Migration(migrations.Migration):
252249 ('created_at' , models .DateTimeField (auto_now_add = True )),
253250 ('updated_at' , models .DateTimeField (auto_now = True )),
254251 ('type' , models .CharField (choices = [('Cigarettes' , 'Cigarettes' ), ('RolledCigarettes' , 'Rolled cigarettes, or roll-ups' ), ('Pipe' , 'Pipe' ), ('Cigars' , 'Cigars' ), ('Cigarillos' , 'Cigarillos' ), ('Shisha' , 'Shisha' )])),
255- ('response_set' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , related_name = 'tobacco_smoking_history' , to = QUESTIONS_RESPONSESET )),
252+ ('response_set' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , related_name = 'tobacco_smoking_history' , to = 'questions.responseset' )),
256253 ],
257254 ),
258255 migrations .CreateModel (
@@ -262,7 +259,7 @@ class Migration(migrations.Migration):
262259 ('created_at' , models .DateTimeField (auto_now_add = True )),
263260 ('updated_at' , models .DateTimeField (auto_now = True )),
264261 ('value' , models .CharField (choices = [('D' , 'Daily' ), ('W' , 'Weekly' ), ('M' , 'Monthly' )], max_length = 1 )),
265- ('tobacco_smoking_history' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'smoking_frequency_response' , to = QUESTIONS_TOBACCOMOKINGSHISTORY )),
262+ ('tobacco_smoking_history' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'smoking_frequency_response' , to = 'questions.tobaccosmokinghistory' )),
266263 ],
267264 options = {
268265 'abstract' : False ,
@@ -275,7 +272,7 @@ class Migration(migrations.Migration):
275272 ('created_at' , models .DateTimeField (auto_now_add = True )),
276273 ('updated_at' , models .DateTimeField (auto_now = True )),
277274 ('value' , models .BooleanField ()),
278- ('tobacco_smoking_history' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'smoking_current_response' , to = QUESTIONS_TOBACCOMOKINGSHISTORY )),
275+ ('tobacco_smoking_history' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'smoking_current_response' , to = 'questions.tobaccosmokinghistory' )),
279276 ],
280277 options = {
281278 'abstract' : False ,
@@ -288,7 +285,7 @@ class Migration(migrations.Migration):
288285 ('created_at' , models .DateTimeField (auto_now_add = True )),
289286 ('updated_at' , models .DateTimeField (auto_now = True )),
290287 ('value' , models .IntegerField (validators = [django .core .validators .MinValueValidator (1 , message = 'The number of years you smoked cigarettes must be at least 1' )])),
291- ('tobacco_smoking_history' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'smoked_total_years_response' , to = 'QUESTIONS_TOBACCOMOKINGSHISTORY ' )),
288+ ('tobacco_smoking_history' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'smoked_total_years_response' , to = 'questions.tobaccosmokinghistory ' )),
292289 ],
293290 options = {
294291 'abstract' : False ,
@@ -301,7 +298,7 @@ class Migration(migrations.Migration):
301298 ('created_at' , models .DateTimeField (auto_now_add = True )),
302299 ('updated_at' , models .DateTimeField (auto_now = True )),
303300 ('value' , models .IntegerField (validators = [django .core .validators .MinValueValidator (1 )])),
304- ('tobacco_smoking_history' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'smoked_amount_response' , to = 'QUESTIONS_TOBACCOMOKINGSHISTORY ' )),
301+ ('tobacco_smoking_history' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'smoked_amount_response' , to = 'questions.tobaccosmokinghistory ' )),
305302 ],
306303 options = {
307304 'abstract' : False ,
@@ -315,7 +312,7 @@ class Migration(migrations.Migration):
315312 ('updated_at' , models .DateTimeField (auto_now = True )),
316313 ('metric' , models .PositiveIntegerField (blank = True , null = True , validators = [django .core .validators .MinValueValidator (254 , message = 'Weight must be between 25.4kg and 317.5kg' ), django .core .validators .MaxValueValidator (3175 , message = 'Weight must be between 25.4kg and 317.5kg' )])),
317314 ('imperial' , models .PositiveIntegerField (blank = True , null = True , validators = [django .core .validators .MinValueValidator (56 , message = 'Weight must be between 4 stone and 50 stone' ), django .core .validators .MaxValueValidator (700 , message = 'Weight must be between 4 stone and 50 stone' )])),
318- ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'weight_response' , to = QUESTIONS_RESPONSESET )),
315+ ('response_set' , models .OneToOneField (on_delete = django .db .models .deletion .CASCADE , related_name = 'weight_response' , to = 'questions.responseset' )),
319316 ],
320317 options = {
321318 'abstract' : False ,
0 commit comments