Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update docs

  • Loading branch information...
commit 7b92ebc05ef540cef56ebb63a821e20ba58eb903 1 parent 0fd8820
@toast38coza authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 README.mkd
View
8 README.mkd
@@ -13,6 +13,12 @@ Additionally, this package allows you to create AJAX endpoints for manipulating
There are no models associated with this package so you don't need to worry about syncing your database or anything.
+## Settings
+
+You can add the following settings to `settings.py` :
+
+* `AJAX_MAX_PER_PAGE` (optional: defaults to 100). Sets the maximum number of objects that can be returned per page using the built-in `list` method on a `ModelEndpoint`
+
# Usage
You can use this package to create ad-hoc AJAX endpoints or by exposing your Django applications's models via AJAX.
@@ -176,7 +182,7 @@ You can limit methods that are allowed on your `ModelEndpoint` by decorating you
class CategoryEndpoint(ajax.endpoints.ModelEndpoint):
- @allowed_methods(['get','update','list'])
+ @allowed_methods('get','update','list')
def authenticate(self,request):
...
Please sign in to comment.
Something went wrong with that request. Please try again.