Modified: 1) The signature of add_extra_field, 2) It's return type. Now it
should return the data itself, instead of None. This is due to some limitations
that have to do with handing references in Python (sometimes you can't simply
bind something on a reference, and therefore it's impossible to do certain
tasks). ATTENTION: These modifications break backward compatibility, so changes
will be needed in application level
Irrelevant
Completely modified how the extra fields will be added to a model handler. The whole approach moves to the Model class instead of the Handler class. DANGER: Backward incompatible
oops
readme
Instead of extra_fields, we use the tuple fake_fields. And instead of method _extra_fields() we use method _compute_fake_fields()
Written test class TestResponseFieldsBase, which will be used to test whether JSON responses contain all the fields they should have
Test django-icetea itself with the TestResponseFieldsBase class
extra_fields -> fake_fields
.
It's wrong to consider that any model in a BaseHandler should be considered as nested. A BaseHandler might as well return models, as first class citizens of its data response. The extra check in the model class, makes sure that in those cases, the representation of models is still valid
If a dictionary is found, then the field selection for the next level is empty, and the nested flag is True
Eliminated circular dependency between handlers.py and emitters.py
docs
gitignore
readme
Refactored, and cleared out some garbage
docs
nothing much
refactoring