Commit 3425cadb authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Francedata: set constituency country

parent 85514545
......@@ -195,7 +195,8 @@ class FranceDataImporter(GenericImporter):
self.france = Country.objects.get(name="France")
self.variant = FranceDataVariants[variant]
self.variant_constituency, _ = Constituency.objects.get_or_create(
name=self.variant['constituency_name'])
name=self.variant['constituency_name'],
country=self.france)
@transaction.atomic
def manage_rep(self, rep_json):
......
......@@ -474,7 +474,7 @@
},
{
"fields": {
"country": null,
"country": 1095,
"name": "Assembl\u00e9e nationale"
},
"model": "representatives.constituency",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment