praekelt/go-rts-zambia — pull request #8 by imsickofmaps (2013-08-13 13:12:22+00:00)
Title: Registration data can be submitted and served via API

Data collected in the registration process will be submitted by a POST request from the sandbox to the TastyPie interface.

* Head Teacher data should be stored separate from School Data
* Data should be stored as new records every time updated so they can track history
* POST should return the object inserted so we can store the ID of created object in Vumi Go contact object
* the school name should be extracted and the hierarchy app school object updated

## Models:

### HeadTeacher

* **first_name:** CharField(50)
* **last_name:** CharField(50)
* **gender:** CharField(6)
* **msisdn:** CharField(20)
* **date_of_birth:** DateField
* **is_zonal_head:** BooleanField
* **zonal_head_name:** CharField(100)
* **created_at:** DateField
* **emis:** Foreign Key

### SchoolData

* **emis:** Foreign Key (Hierarchy.Schools.emis)
* **name:** CharField(100)
* **classrooms:** IntegerField
* **teachers:** IntegerField
* **teachers_g1:** IntegerField
* **teachers_g2:** IntegerField
* **boys_g2:** IntegerField
* **girls_g2:** IntegerField
* **created_at:** DateField
* **created_by:** Foreign Key (HeadTeacher.id)