Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gil obradors created es models - rebase #372

Merged
merged 15 commits into from
Apr 30, 2019

Conversation

benkonrath
Copy link
Member

@benkonrath benkonrath commented Apr 29, 2019

@gil-obradors This is a rebase of your PR (#357). The merges were too confusing to read and I want to cleanup and merge this PR in time for the 2.2 release.

Closes #357

gil-obradors and others added 15 commits April 29, 2019 11:31
Added models for ES-ID document and ES-PostalCodes
Models for National-ID and PostalCodes
Add DNI and Postalcode model
Isorted
orthographic error
The official name is Araba/Álava:
https://en.wikipedia.org/wiki/%C3%81lava

This change should be made in separate PR.
* Remove spaces and dashes before saving to database
* Change identity card field length to 9
* Add tests
@benkonrath
Copy link
Member Author

@gil-obradors I've made a few changes your PR so that it can be included in the 2.2 release. Here's an overview:

  • Reverted ES province change to Alaba (changed it back to Araba).
    According to wikipedia, the official name is "Araba / Álava" but this change needs be made in separate PR where we can have a discussion on the best choice for the name.
    https://en.wikipedia.org/wiki/%C3%81lava
  • Removed spaces and dashes before saving identity card value to the database.
  • Changed identity card field length to 9 (as per the card length without spaces).
  • Added some tests for the model fields.

It would be great if you can look over the changes if you have time. I'm planning to merge this into master tomorrow. Thanks.

@benkonrath benkonrath added this to the 2.2 milestone Apr 29, 2019
@codecov-io
Copy link

codecov-io commented Apr 29, 2019

Codecov Report

Merging #372 into master will decrease coverage by 0.02%.
The diff coverage is 92.59%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #372      +/-   ##
==========================================
- Coverage   95.96%   95.94%   -0.03%     
==========================================
  Files         160      161       +1     
  Lines        4068     4095      +27     
  Branches      527      528       +1     
==========================================
+ Hits         3904     3929      +25     
- Misses         99      100       +1     
- Partials       65       66       +1
Impacted Files Coverage Δ
localflavor/es/models.py 92.59% <92.59%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ff23bb...eb34207. Read the comment docs.

@benkonrath benkonrath merged commit 2e27476 into master Apr 30, 2019
@benkonrath benkonrath deleted the gil-obradors-created-es-models branch April 30, 2019 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants