Bases: exceptions.Exception
Bases: django.http.response.HttpResponse
Bases: django.http.response.HttpResponse
Provide a decorator to wrap a view method so that it may exist in an entirely AJAX environment:
if authenticated is true then we’ll make sure the current user is authenticated.
If data_required is true then we’ll assert that there is a JSON body present.
The wrapped view method should return either:
Methods returning nothing (or None explicitly) will result in a 204 “NO CONTENT” being returned to the caller.
Extract REST filter parameters from the request GET args.
Client processes some keywords separately from filters and takes them as separate inputs. This will ignore those keys to avoid potential conflicts.