define(function(t){"use strict";var e=t("backbone");var n=e.sync;e.sync=function(t,e,o){o.beforeSend=function(t){t.setRequestHeader("X-CSRFToken",window.csrf_token)};return n(t,e,o)};e.Collection.prototype.parse=function(t){this.count=t.count;this.next=t.next;this.previous=t.previous;return t&&t.results||t};e.Collection.prototype.getNextPage=function(t){if(!this.next){return null}var e=t||{};var n=this.next.split("?")[1];e.data=n;return this.fetch(e)};e.Collection.prototype.getPreviousPage=function(){if(!this.previous){return null}var t=options||{};var e=this.previous.split("?")[1];t.data=e;return this.fetch(t)}});
//# sourceMappingURL=build/djangorest-backbone.min.map