|
7 | 7 | class Migration(migrations.Migration): |
8 | 8 |
|
9 | 9 | dependencies = [ |
10 | | - ('problem', '0001_initial'), |
| 10 | + ("problem", "0001_initial"), |
11 | 11 | ] |
12 | 12 |
|
13 | 13 | operations = [ |
14 | 14 | migrations.CreateModel( |
15 | | - name='FracasProblem', |
| 15 | + name="FracasProblem", |
16 | 16 | fields=[ |
17 | | - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
18 | | - ('fracas_id', models.IntegerField(unique=True)), |
19 | | - ('question', models.CharField(help_text='The question from the original FraCaS problem. 4 problems do not have a question.', max_length=255)), |
20 | | - ('hypothesis', models.CharField(help_text='The answer formulated as a hypothesis by McCartney.', max_length=255)), |
21 | | - ('answer', models.CharField(help_text='The answer from the original FraCaS problem. Most are "Yes", "No", or "Don\'t know", but not always.', max_length=255)), |
22 | | - ('fracas_answer', models.CharField(choices=[('yes', 'Yes'), ('no', 'No'), ('unknown', 'Unknown'), ('undef', 'Undef')], help_text='The answer constrained to one of a fixed set of values by McCartney.', max_length=20)), |
23 | | - ('fracas_non_standard', models.BooleanField(help_text='Indicates whether the answer in the origianl FraCaS problem is non-standard (i.e. not "Yes", "No", or "Don\'t know")')), |
24 | | - ('note', models.TextField(help_text='Note given by McCartney to explain issues arising during translation to XML.')), |
25 | | - ('section_name', models.CharField(help_text='The section name from the original FraCaS problem.', max_length=255)), |
26 | | - ('subsection_name', models.CharField(help_text='The subsection name from the original FraCaS problem.', max_length=255)), |
| 17 | + ( |
| 18 | + "id", |
| 19 | + models.BigAutoField( |
| 20 | + auto_created=True, |
| 21 | + primary_key=True, |
| 22 | + serialize=False, |
| 23 | + verbose_name="ID", |
| 24 | + ), |
| 25 | + ), |
| 26 | + ("fracas_id", models.IntegerField(unique=True)), |
| 27 | + ( |
| 28 | + "question", |
| 29 | + models.CharField( |
| 30 | + help_text="The question from the original FraCaS problem. 4 problems do not have a question.", |
| 31 | + max_length=255, |
| 32 | + ), |
| 33 | + ), |
| 34 | + ( |
| 35 | + "hypothesis", |
| 36 | + models.CharField( |
| 37 | + help_text="The answer formulated as a hypothesis by McCartney.", |
| 38 | + max_length=255, |
| 39 | + ), |
| 40 | + ), |
| 41 | + ( |
| 42 | + "answer", |
| 43 | + models.CharField( |
| 44 | + help_text='The answer from the original FraCaS problem. Most are "Yes", "No", or "Don\'t know", but not always.', |
| 45 | + max_length=255, |
| 46 | + ), |
| 47 | + ), |
| 48 | + ( |
| 49 | + "fracas_answer", |
| 50 | + models.CharField( |
| 51 | + choices=[ |
| 52 | + ("yes", "Yes"), |
| 53 | + ("no", "No"), |
| 54 | + ("unknown", "Unknown"), |
| 55 | + ("undef", "Undef"), |
| 56 | + ], |
| 57 | + help_text="The answer constrained to one of a fixed set of values by McCartney.", |
| 58 | + max_length=20, |
| 59 | + ), |
| 60 | + ), |
| 61 | + ( |
| 62 | + "fracas_non_standard", |
| 63 | + models.BooleanField( |
| 64 | + help_text='Indicates whether the answer in the origianl FraCaS problem is non-standard (i.e. not "Yes", "No", or "Don\'t know")' |
| 65 | + ), |
| 66 | + ), |
| 67 | + ( |
| 68 | + "note", |
| 69 | + models.TextField( |
| 70 | + help_text="Note given by McCartney to explain issues arising during translation to XML." |
| 71 | + ), |
| 72 | + ), |
| 73 | + ( |
| 74 | + "section_name", |
| 75 | + models.CharField( |
| 76 | + help_text="The section name from the original FraCaS problem.", |
| 77 | + max_length=255, |
| 78 | + ), |
| 79 | + ), |
| 80 | + ( |
| 81 | + "subsection_name", |
| 82 | + models.CharField( |
| 83 | + help_text="The subsection name from the original FraCaS problem.", |
| 84 | + max_length=255, |
| 85 | + ), |
| 86 | + ), |
27 | 87 | ], |
28 | 88 | ), |
29 | 89 | migrations.CreateModel( |
30 | | - name='FracasPremise', |
| 90 | + name="FracasPremise", |
31 | 91 | fields=[ |
32 | | - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
33 | | - ('premise_index', models.IntegerField(help_text='The index of the premise in the original FraCaS problem.')), |
34 | | - ('premise', models.CharField(help_text='The premise from the original FraCaS problem.', max_length=255)), |
35 | | - ('fracas_problem', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='premises', to='problem.fracasproblem')), |
| 92 | + ( |
| 93 | + "id", |
| 94 | + models.BigAutoField( |
| 95 | + auto_created=True, |
| 96 | + primary_key=True, |
| 97 | + serialize=False, |
| 98 | + verbose_name="ID", |
| 99 | + ), |
| 100 | + ), |
| 101 | + ( |
| 102 | + "premise_index", |
| 103 | + models.IntegerField( |
| 104 | + help_text="The index of the premise in the original FraCaS problem." |
| 105 | + ), |
| 106 | + ), |
| 107 | + ( |
| 108 | + "premise", |
| 109 | + models.CharField( |
| 110 | + help_text="The premise from the original FraCaS problem.", |
| 111 | + max_length=255, |
| 112 | + ), |
| 113 | + ), |
| 114 | + ( |
| 115 | + "fracas_problem", |
| 116 | + models.ForeignKey( |
| 117 | + on_delete=django.db.models.deletion.CASCADE, |
| 118 | + related_name="premises", |
| 119 | + to="problem.fracasproblem", |
| 120 | + ), |
| 121 | + ), |
36 | 122 | ], |
37 | 123 | options={ |
38 | | - 'unique_together': {('fracas_problem', 'premise_index')}, |
| 124 | + "unique_together": {("fracas_problem", "premise_index")}, |
39 | 125 | }, |
40 | 126 | ), |
41 | 127 | ] |
0 commit comments