Files
dss/static/js/app/models/comment.js

10 lines
251 B
JavaScript

var Comment = DSSModel.extend({
urlRoot:com.podnoms.settings.urlRoot + "comments/"
});
var CommentCollection = TastypieCollection.extend({
model:Comment,
comparator: function(comment){
return -comment.get("id");
}
});