News for hackers. Stuff that matters.
Re:Things I Wish I Had Known About Django Development Before... by pindi on Wednesday April 17, 2013 @10:11PM (#5568578)
Well, not dangerous so much as will fail with a "Model instance is not JSON serializable" message. So of course you'll need to construct the list/dictionary representation of your data manually. A good framework can help with that, but this isn't something that's solvable in the general case with just a response subclass without risking data leaks as you stated. (The other option in the original post makes this mistake, making both suggested options insecure)

There are no comments on this comment yet.