Expose age_range instead of date_of_birth for Voter/User class

This commit is contained in:
Alberto Miedes Garcés
2017-01-02 14:12:37 +01:00
parent f4e0ef7eea
commit 0b4004042f
5 changed files with 43 additions and 4 deletions

View File

@@ -4,10 +4,10 @@ API_TYPE_DEFINITIONS = {
username: :string
},
Voter => {
gender: :string,
date_of_birth: :string,
geozone_id: :integer,
geozone: Geozone
gender: :string,
age_range: :string,
geozone_id: :integer,
geozone: Geozone
},
Debate => {
id: :integer,