Files
dss/static/js/app/models/comment.js
2012-08-27 16:30:03 +01:00

10 lines
254 B
JavaScript
Executable File

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