Add local_census_records importation model

This model without database allow us to validate incoming file extension and
headers and also does the following during importation process:

* Ignore empty rows
* Classifiy rows in two groups: created_records, invalid_records
This commit is contained in:
Senén Rodero Rodríguez
2019-05-16 10:56:44 +02:00
committed by Javi Martín
parent 0239efef9d
commit 615bfadca8
8 changed files with 218 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
"document_type","document_number","date_of_birth","postal_code"
,"44556678T","07/08/1984",7008
"DNI",,"07/08/1985",7009
"Passport","22556678T",,7010
"NIE","X11556678","07/08/1987",
1 document_type document_number date_of_birth postal_code
2 44556678T 07/08/1984 7008
3 DNI 07/08/1985 7009
4 Passport 22556678T 7010
5 NIE X11556678 07/08/1987

View File

@@ -0,0 +1,5 @@
,,,
"44556678T","DNI","07/08/84",7008
"33556678T","DNI","07/08/84",7008
"22556678T","DNI","07/08/84",7008
"X11556678","NIE","07/08/84",7008
1
2 44556678T DNI 07/08/84 7008
3 33556678T DNI 07/08/84 7008
4 22556678T DNI 07/08/84 7008
5 X11556678 NIE 07/08/84 7008

View File

@@ -0,0 +1,5 @@
"document_type","document_number","date_of_birth","postal_code"
"DNI","44556678T","07/08/1984",7008
"DNI","33556678T","07/08/1985",7008
"DNI","22556678T","07/08/1986",7008
"NIE","X11556678","07/08/1987",7008
1 document_type document_number date_of_birth postal_code
2 DNI 44556678T 07/08/1984 7008
3 DNI 33556678T 07/08/1985 7008
4 DNI 22556678T 07/08/1986 7008
5 NIE X11556678 07/08/1987 7008