-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add disregard_selection to eligibility check
- Loading branch information
1 parent
6abd828
commit 43151d1
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from extended_choices import Choices | ||
|
||
DISREGARD_SELECTION = Choices( | ||
# This populates the "Have you had a big payment that you do not normally get?" radio button group on cla_frontend | ||
# constant, db_id, friendly string | ||
("YES", "yes", "Yes"), | ||
("NO", "no", "No"), | ||
("NOT_SURE", "not_sure", "Not sure"), | ||
) |
23 changes: 23 additions & 0 deletions
23
cla_backend/apps/legalaid/migrations/0037_eligibilitycheck_disregard_selection.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [("legalaid", "0036_auto_20241002_1407")] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="eligibilitycheck", | ||
name="disregard_selection", | ||
field=models.CharField( | ||
default=None, | ||
max_length=10, | ||
null=True, | ||
blank=True, | ||
choices=[(b"yes", b"Yes"), (b"no", b"No"), (b"not_sure", b"Not sure")], | ||
), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters