News for hackers. Stuff that matters.
Re:Backbone.js and Django by chernevik on Tuesday July 05, 2011 @09:15PM (#2732206)
Further line saving: The << methods >> dictionary isn't needed, it's just mapping lower case strings to upper. Replace:

return methods[request.method](request, item_id)

with:

return request.method.lower(request, item_id)

There are no comments on this comment yet.