Files
dss/static/js/app/models/comment.js
2012-08-09 11:02:18 +01:00

10 lines
254 B
JavaScript

var Comment = TastypieModel.extend({
urlRoot:window.appSettings.urlRoot + "comments/"
});
var CommentCollection = TastypieCollection.extend({
model:Comment,
comparator: function(comment){
return -comment.get("id");
}
});