edited Address in location/transfer.py
This commit is contained in:
parent
bc7d4ef5a5
commit
03b22d79db
|
|
@ -84,8 +84,8 @@ card = {
|
|||
"Cities": [(
|
||||
(None, "country_code_2"),
|
||||
("Country", "country", "code", "CharField")),
|
||||
((None, "subregion_code"), #TODO: как сопоставлять parent_region из postgres с subregion_code из legacy ?
|
||||
("Region", "parent_region", "code", "CharField"))
|
||||
# ((None, "subregion_code"), #TODO: как сопоставлять parent_region из postgres с subregion_code из legacy ?
|
||||
# ("Region", "parent_region", "code", "CharField"))
|
||||
|
||||
]
|
||||
}
|
||||
|
|
@ -132,14 +132,13 @@ card = {
|
|||
},
|
||||
},
|
||||
"relations": {
|
||||
"Locations": [ #TODO: Locations ссылается внешним ключом на Cities
|
||||
# (("city", "name"),
|
||||
# ("City", "city", "name", "CharField"))
|
||||
"Cities": [ #TODO: Locations ссылается внешним ключом на Cities
|
||||
(("city_id", "id"),
|
||||
("City", "city", "id", "PositiveIntegerField"))
|
||||
]
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
used_apps = None
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user