Serialize Django model to JSON

From: http://stackoverflow.com/questions/1113096/django-dump-data-for-a-single-model