toastdriven/django-tastypie — pull request #778 by eykd (2013-01-23 23:36:06+00:00)
Title: Fixed CSVSerializer example's `to_csv` method to actually work.

I tried using the example as provided in the current docs, and found that the `to_csv` method didn't work. I've fixed this, based on my own working version. I have to tested the `from_csv` method, but I did check it against the docs, and it appears correct.

The improved example also demonstrates better subclassing of parent Serializer, so the subclass doesn't need to know which formats are already implemented on the parent class.