DRP 0.3.0
Django REST pandas 0.3.0 adds support for Django REST Framework 3 (#10) and a better separation between model serialization and DataFrame creation - the latter now happening in a separate serializer (#8).
The new code is mostly backwards compatible (the tests haven't changed) but there are a couple of implementation changes that may affect you if you've customized or extended DRP.
PandasBaseSerializerhas been renamed toPandasSerializerand replaces the formerPandasSerializer. When using DRP with DRF 3, the newPandasSerializeris a ListSerializer and can only be used as such.PandasSimpleSerializerhas been renamed toSimpleSerializerand no longer has any pandas-related functionality (since that's now handled in a separate step).- For the DRP views, a new
PandasMixinclass encapsulates the functionality needed to add Pandas capabilities to a serialized result. This is accomplished via the newwith_pandas_serializer(cls)method that customizes any existingserializer_classto enable Pandas capabilities as needed. The Pandas serializer can be overridden by specifyingpandas_serializer_class.