Skip to content

Commit

Permalink
Merge pull request #18 from i-dot-ai/fix-quote-marks
Browse files Browse the repository at this point in the history
Run pre-commit over the whole repo
  • Loading branch information
duncanjbrown authored Mar 18, 2024
2 parents 5471c92 + 870a3b4 commit e0a6385
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 61 deletions.
137 changes: 78 additions & 59 deletions consultation_analyser/consultations/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,105 +6,124 @@


class Migration(migrations.Migration):

initial = True

dependencies = [
]
dependencies = []

operations = [
migrations.CreateModel(
name='Consultation',
name="Consultation",
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('created_at', models.DateTimeField(auto_now_add=True)),
('modified_at', models.DateTimeField(auto_now=True)),
('name', models.CharField(max_length=256)),
('slug', models.CharField(max_length=256)),
("id", models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
("created_at", models.DateTimeField(auto_now_add=True)),
("modified_at", models.DateTimeField(auto_now=True)),
("name", models.CharField(max_length=256)),
("slug", models.CharField(max_length=256)),
],
options={
'ordering': ['created_at'],
'abstract': False,
"ordering": ["created_at"],
"abstract": False,
},
),
migrations.CreateModel(
name='ConsultationResponse',
name="ConsultationResponse",
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('created_at', models.DateTimeField(auto_now_add=True)),
('modified_at', models.DateTimeField(auto_now=True)),
("id", models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
("created_at", models.DateTimeField(auto_now_add=True)),
("modified_at", models.DateTimeField(auto_now=True)),
],
options={
'ordering': ['created_at'],
'abstract': False,
"ordering": ["created_at"],
"abstract": False,
},
),
migrations.CreateModel(
name='Theme',
name="Theme",
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('created_at', models.DateTimeField(auto_now_add=True)),
('modified_at', models.DateTimeField(auto_now=True)),
('label', models.CharField(blank=True, max_length=256)),
('summary', models.TextField(blank=True)),
('keywords', models.JSONField(default=list)),
("id", models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
("created_at", models.DateTimeField(auto_now_add=True)),
("modified_at", models.DateTimeField(auto_now=True)),
("label", models.CharField(blank=True, max_length=256)),
("summary", models.TextField(blank=True)),
("keywords", models.JSONField(default=list)),
],
options={
'ordering': ['created_at'],
'abstract': False,
"ordering": ["created_at"],
"abstract": False,
},
),
migrations.CreateModel(
name='Section',
name="Section",
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('created_at', models.DateTimeField(auto_now_add=True)),
('modified_at', models.DateTimeField(auto_now=True)),
('name', models.TextField()),
('slug', models.CharField(max_length=256)),
('consultation', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='consultations.consultation')),
("id", models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
("created_at", models.DateTimeField(auto_now_add=True)),
("modified_at", models.DateTimeField(auto_now=True)),
("name", models.TextField()),
("slug", models.CharField(max_length=256)),
(
"consultation",
models.ForeignKey(
null=True, on_delete=django.db.models.deletion.CASCADE, to="consultations.consultation"
),
),
],
),
migrations.CreateModel(
name='Question',
name="Question",
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('created_at', models.DateTimeField(auto_now_add=True)),
('modified_at', models.DateTimeField(auto_now=True)),
('text', models.CharField()),
('slug', models.CharField(max_length=256)),
('has_free_text', models.BooleanField(default=False)),
('multiple_choice_options', models.JSONField(null=True)),
('section', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='consultations.section')),
("id", models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
("created_at", models.DateTimeField(auto_now_add=True)),
("modified_at", models.DateTimeField(auto_now=True)),
("text", models.CharField()),
("slug", models.CharField(max_length=256)),
("has_free_text", models.BooleanField(default=False)),
("multiple_choice_options", models.JSONField(null=True)),
(
"section",
models.ForeignKey(
null=True, on_delete=django.db.models.deletion.CASCADE, to="consultations.section"
),
),
],
options={
'ordering': ['created_at'],
'abstract': False,
"ordering": ["created_at"],
"abstract": False,
},
),
migrations.CreateModel(
name='Answer',
name="Answer",
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('created_at', models.DateTimeField(auto_now_add=True)),
('modified_at', models.DateTimeField(auto_now=True)),
('multiple_choice_responses', models.JSONField(null=True)),
('free_text', models.TextField(null=True)),
('consultation_response', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='consultations.consultationresponse')),
('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='consultations.question')),
('theme', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='consultations.theme')),
("id", models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
("created_at", models.DateTimeField(auto_now_add=True)),
("modified_at", models.DateTimeField(auto_now=True)),
("multiple_choice_responses", models.JSONField(null=True)),
("free_text", models.TextField(null=True)),
(
"consultation_response",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="consultations.consultationresponse"
),
),
(
"question",
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="consultations.question"),
),
(
"theme",
models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to="consultations.theme"),
),
],
options={
'ordering': ['created_at'],
'abstract': False,
"ordering": ["created_at"],
"abstract": False,
},
),
migrations.AddConstraint(
model_name='section',
constraint=models.UniqueConstraint(fields=('slug', 'consultation'), name='unique_section_consultation'),
model_name="section",
constraint=models.UniqueConstraint(fields=("slug", "consultation"), name="unique_section_consultation"),
),
migrations.AddConstraint(
model_name='question',
constraint=models.UniqueConstraint(fields=('slug', 'section'), name='unique_question_section'),
model_name="question",
constraint=models.UniqueConstraint(fields=("slug", "section"), name="unique_question_section"),
),
]
2 changes: 1 addition & 1 deletion prototype/app/assets/sass/application.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// For guidance on how to add CSS and SCSS see:
// https://prototype-kit.service.gov.uk/docs/adding-css-javascript-and-images
//
//

:root {
--iai-pink: #b62777;
Expand Down
2 changes: 1 addition & 1 deletion prototype/app/views/question-responses.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ <h2 class="govuk-heading-m">Filters</h2>
<div class="govuk-grid-column-two-thirds">

{% set filteredResponses = data.questions|filter(data.keyword) %}

<table class="govuk-table">
<caption class="govuk-table__caption govuk-table__caption--m">
Responses
Expand Down

0 comments on commit e0a6385

Please sign in to comment.