PaulUithol/backbone-tastypie — Issue #6: Cannot generate URL correctly
Author: willow
Created: 2011-11-10 23:52:52+00:00
State: open

I am not sure how this is supposed to work, but with the example code showed in the backbone.js document:

var Book = Backbone.Model.extend({urlRoot : '/books'});
var solaris = new Book({id: "1083-lem-solaris"});
alert(solaris.url());

We get '/books' with `backbone-tastypie`. This is due to the overwritten on `idAttribute` and `url`.