Module Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str Str Str FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body If Call NameLoad NameLoad Call AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad IfExp CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Return Call Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad Return Call NameLoad AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad keyword Num Return Call NameLoad AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return Call NameLoad Dict Str BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str keyword Num If CompareIn Str AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Return Call NameLoad Dict Str AttributeLoad NameLoad attr keyword Num Delete SubscriptDel AttributeLoad NameLoad attr Index Str For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad Call NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad
N/A N/A re N/A django django.http HttpResponseNotAllowed QueryDict django.views.decorators.csrf csrf_exempt django.shortcuts get_object_or_404 django.db IntegrityError django.contrib.auth.models User django.utils.decorators method_decorator models Device forms DeviceForm decorators api_authentication_required http HttpResponseNotImplemented JSONResponse BaseResource N/A object N/A N/A 
    The base class for any API Resources.
     N/A allowed_methods N/A GET POST PUT DELETE route N/A N/A self request N/A kwargs N/A N/A method N/A request method N/A N/A method N/A self allowed_methods N/A N/A N/A hasattr self N/A N/A method lower N/A N/A N/A method PUT N/A N/A N/A request PUT N/A N/A N/A QueryDict N/A N/A N/A django VERSION N/A 1 4 N/A request body N/A request raw_post_data copy N/A N/A N/A getattr self N/A N/A method lower request kwargs N/A N/A HttpResponseNotImplemented N/A N/A HttpResponseNotAllowed N/A self allowed_methods N/A N/A method_decorator api_authentication_required csrf_exempt N/A DeviceResource N/A BaseResource N/A N/A 
    The API resource for ios_notifications.models.Device.

    Allowed HTTP methods are GET, POST and PUT.
     N/A allowed_methods N/A GET POST PUT get N/A N/A self request N/A kwargs N/A N/A 
        Returns an HTTP response with the device in serialized JSON format.
        The device token and device service are expected as the keyword arguments
        supplied by the URL.

        If the device does not exist a 404 will be raised.
         N/A device N/A get_object_or_404 Device kwargs N/A N/A JSONResponse device N/A post N/A N/A self request N/A kwargs N/A N/A 
        Creates a new device or updates an existing one to `is_active=True`.
        Expects two non-options POST parameters: `token` and `service`.
         N/A token N/A N/A N/A request POST get token N/A N/A token None N/A N/A token N/A N/A re sub <|>|\s token N/A devices N/A N/A N/A Device objects filter token token service__id N/A int N/A N/A N/A request POST get service 0 N/A N/A N/A devices exists N/A N/A device N/A N/A devices get N/A N/A device is_active True N/A N/A N/A device save N/A N/A JSONResponse device N/A form N/A DeviceForm N/A request POST N/A N/A N/A form is_valid N/A N/A device N/A N/A form save commit False N/A N/A device is_active True N/A N/A N/A device save N/A N/A JSONResponse device status 201 N/A N/A JSONResponse N/A form errors status 400 N/A put N/A N/A self request N/A kwargs N/A N/A 
        Updates an existing device.

        If the device does not exist a 404 will be raised.

        The device token and device service are expected as the keyword arguments
        supplied by the URL.

        Any attributes to be updated should be supplied as parameters in the request
        body of any HTTP PUT request.
         N/A N/A N/A device N/A N/A N/A Device objects get kwargs N/A N/A N/A N/A Device DoesNotExist N/A N/A N/A JSONResponse N/A error N/A Device with token %s and service %s does not exist N/A N/A kwargs N/A token N/A kwargs N/A service__id status 400 N/A N/A users N/A request PUT N/A N/A N/A N/A user_ids N/A N/A N/A request PUT getlist users N/A N/A N/A N/A device users remove N/A N/A u id N/A u N/A N/A N/A device users all N/A N/A N/A N/A device users add N/A N/A N/A User objects filter id__in user_ids N/A N/A N/A N/A ValueError IntegrityError N/A e N/A N/A N/A JSONResponse N/A error N/A e message status 400 N/A N/A N/A request PUT N/A users N/A N/A key value N/A N/A N/A request PUT items N/A N/A N/A setattr device key value N/A N/A N/A device save N/A N/A JSONResponse device N/A N/A Router N/A object N/A N/A 
    A simple class for handling URL routes.
     __init__ N/A N/A self N/A N/A N/A N/A self device N/A N/A DeviceResource route N/A N/A N/A routes N/A Router