Backbone.js toJSON() not including attributes
问题 I really can't wrap my head around this one. For some reason, (and I suspect it has something to do with asynchronous requests) my model attribute is not being converted properly using the toJSON() function. FWIW, I'm attempting to do lazy loading with django-relational fetchRelated(). Here's where I made the fetchRelated() request and create a new view. $.when(usermodel.fetchRelated("movies")).then(function(){ var newview = new UserMovieList({model: usermodel}); newview.render(); }); And