Dropdown with a list of country codes in the victim object
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 110
- Forks
- 139
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 3
Description
Hello,
To facilitate the filling of the regions field, I would like to include a list of ISO 3166 country codes (specifically the 2 letters form). What would be nice, would be to be able to search for either the country name or the 2 letters code, and then it would fill the code.
However, it seems that with the sane_default attribute, the same text is displayed in the drop-down and then filled. Is it somehow possible to do something like an HTML select tag, with a different option value and displayed value? For instance:
<option value="lu">Luxembourg (lu)</option>
If it's not a good idea, let me know as well :)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the victim object's regions field and its sane_default handling; compare how existing object fields represent selectable values. Confirm whether country-name search and separate displayed and stored values are supported, with completion meaning that a country name or two-letter ISO code can be selected while the code is stored.
Written by the indexing model from the issue text.
Assessment
- Domain
- content
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100