Commit 04162469 authored by Bram's avatar Bram
Browse files

[enh] export phones informations

parent 626ebf41
......@@ -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)
......
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