af / djangbone

Simple Django backends for Backbone.js apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PUT requests not recieving id

pthrasher opened this issue · comments

For some reason, my put requests don't recieve the id, so editing fails. I have the edit_form_class set, and I have the urls.py setup just like your readme says. Nothing is abnormal, I've quadruple checked. ID's are passed in fine for get requests, so I know the URL isn't wrong.

Is this a known issue? Is there a known work around? I pulled the source over into my project, and confirmed that the if statement fails on kwargs.has_key('id').

I figured out the problem... In your readme, you have the urls.py as:

url(r'^widgets', WidgetView.as_view()),

That needs to be:

url(r'^widgets$', WidgetView.as_view()),

Or, come after the id'd url.

Good find! Thanks for the follow up.