json: export seat_number attribute

This commit is contained in:
Frédéric Péters 2011-10-27 15:29:30 +02:00
parent 0d46e074f2
commit 6de5351ace
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ class DeputyJson(BrowserView):
'website': self.context.website,
'degrees': self.context.degrees,
'mandates': self.context.mandates,
'seat_number': self.context.seat_number,
}
if self.context.polgroup:
d['polgroup'] = self.context.polgroup.to_object.title