Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a new feature that allows the interview author to control asking if an address or phone number is impounded.
New attributes:
There is a new keyword parameter for
ALAddress.address_fields()
andALIndividual.address_fields()
:ask_if_impounded (bool)
There is a new keyword parameter for all methods that display an address or part of an address,
show_impounded
. The same keyword can be used with thephone_numbers()
method.Finally, we add some new templates to allow translation of phrases related to impounded addresses:
ALAddress.impounded_label
ALAddress.impounded_output_label
ALIndividual.impounded_phone_output_label
Here's a short demo interview:
I think this is fairly safe and I'm happy with the API, but happy to let this get some feedback from our grant partners before merging.