From 04162469800152837a54f6089e14be4f549c318a Mon Sep 17 00:00:00 2001 From: Laurent Peuch <cortex@worlddomination.be> Date: Sat, 22 Jun 2013 15:45:33 +0200 Subject: [PATCH] [enh] export phones informations --- .../management/commands/export_in_representatives_format.py | 1 + 1 file changed, 1 insertion(+) diff --git a/representatives/management/commands/export_in_representatives_format.py b/representatives/management/commands/export_in_representatives_format.py index 6606df6..378a691 100644 --- a/representatives/management/commands/export_in_representatives_format.py +++ b/representatives/management/commands/export_in_representatives_format.py @@ -19,6 +19,7 @@ class Command(BaseCommand): reps["contact"] = {} reps["contact"]["emails"] = [{"email": email.email, "type": email.kind} for email in representative.email_set.all()] reps["contact"]["websites"] = [{"website": website.url, "type": website.kind} for website in representative.website_set.all()] + reps["contact"]["phones"] = [{"phone": phone.number, "type": phone.kind, "address": phone.address_id} for phone in representative.phone_set.all()] result.append(reps) -- GitLab