Nested serialization of model instances

2011-08-15 Thread Christo Buschek
Hi list, I'm busy writing a custom json serializer for django. It works very good, only now I want to serialize ForeignKey and M2M relations inside the same serialization call and build nested json objects with all model instances that the current model instance relates to. {'field_a': 'value',

csrf_exempt decorator and class based views

2011-03-08 Thread Christo Buschek
Hello. I came across a problem that I don't fully understand. I try to implement a view where I want to turn csrf protection off. My view is implemented as a class based view, eg: class BaseHandler(object): """Base class to provide method lookup per HTTP method.""" def __call__(self, requ