1. Jesper Noehr
  2. django-piston
  3. Issues
Issue #62 resolved

/api/posts.xml throws an ungainly exception on the example

avegas
created an issue

It appears to me that if one goes to the url http://localhost/api/posts.xml or any other emitter format, an exception is thrown because the introspective magic wants to serialize "resource_uri", which in turn wants to serialize "format", which it thinks should be a property of the model.

The attached patch causes this exception not to be thrown by the example code, but I would think that something should be added to the serialization magic to handle this case, I'm just entirely unsure of what is going on in emitters.py.

Comments (1)

  1. Log in to comment