Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Return ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareNotIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareIn Str NameLoad body If BoolOpOr CompareIn Str AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareIn Str NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareIn Str NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Num ExceptHandler type NameLoad name NameStore body Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num ExceptHandler type NameLoad name NameStore body Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr ExceptHandler type NameLoad name NameStore body If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpOr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body Assign NameStore Dict Str Str NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword TupleLoad Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr For NameStore NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If NameLoad body Return NameLoad Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str If BoolOpOr CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr CompareIn AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIn Str AttributeLoad AttributeLoad NameLoad attr attr body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str orelse If CompareIn AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str If CompareNotIn Str AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A json django.core.exceptions ValidationError django.core serializers django.forms.models modelform_factory django.views.generic FormView djng.views.mixins JSONBaseMixin JSONResponseException NgMissingParameterError N/A ValueError N/A N/A N/A NgCRUDView N/A JSONBaseMixin FormView N/A N/A 
    Basic view to support default angular $resource CRUD actions on server side
    Subclass and override ``model`` with your model

    Optional 'pk' GET parameter must be passed when object identification is required (save to update and delete)

    If fields != None the serialized data will only contain field names from fields array
     N/A model None N/A fields None N/A form_class None N/A slug_field slug N/A serializer_name python N/A serialize_natural_keys False N/A allowed_methods N/A GET POST DELETE N/A exclude_methods N/A get_allowed_methods N/A N/A self N/A N/A N/A N/A method N/A method N/A self allowed_methods N/A method N/A self exclude_methods N/A dispatch N/A N/A self request N/A args kwargs N/A N/A 
        Override dispatch to call appropriate methods:
        * $query - ng_query
        * $get - ng_get
        * $save - ng_save
        * $delete and $remove - ng_delete
         N/A allowed_methods N/A N/A self get_allowed_methods N/A N/A N/A N/A N/A N/A request method GET N/A GET allowed_methods N/A N/A N/A N/A pk N/A request GET N/A N/A self slug_field N/A request GET N/A N/A N/A N/A self ng_get request args kwargs N/A N/A N/A self ng_query request args kwargs N/A N/A N/A N/A N/A request method POST N/A POST allowed_methods N/A N/A N/A N/A self ng_save request args kwargs N/A N/A N/A N/A N/A request method DELETE N/A DELETE allowed_methods N/A N/A N/A N/A self ng_delete request args kwargs N/A N/A N/A N/A N/A self model DoesNotExist N/A e N/A N/A N/A N/A self error_json_response N/A N/A e args N/A 0 404 N/A N/A NgMissingParameterError N/A e N/A N/A N/A N/A self error_json_response N/A N/A e args N/A 0 N/A N/A JSONResponseException N/A e N/A N/A N/A N/A self error_json_response N/A N/A e args N/A 0 N/A e status_code N/A N/A ValidationError N/A e N/A N/A N/A hasattr e error_dict N/A N/A N/A N/A self error_json_response Form not valid detail N/A e message_dict N/A N/A N/A N/A self error_json_response N/A e message N/A N/A N/A self error_json_response N/A N/A This view can not handle method {0} format N/A request method 405 N/A get_form_class N/A N/A self N/A N/A N/A 
        Build ModelForm from model
         N/A N/A N/A self form_class N/A modelform_factory N/A self model exclude N/A N/A build_json_response N/A N/A self data N/A kwargs N/A N/A N/A N/A self json_response N/A N/A self serialize_queryset data separators N/A , : kwargs N/A error_json_response N/A N/A self message status_code detail N/A 400 None N/A N/A response_data N/A message detail message detail N/A N/A N/A self json_response response_data status status_code separators N/A , : N/A serialize_queryset N/A N/A self queryset N/A N/A N/A 
        Return serialized queryset or single object as python dictionary
        serialize() only works on iterables, so to serialize a single object we put it in a list
         N/A object_data N/A N/A is_queryset False N/A query_fields N/A N/A self get_fields N/A N/A N/A N/A iter queryset N/A is_queryset True N/A raw_data N/A N/A serializers serialize N/A self serializer_name queryset fields query_fields use_natural_keys N/A self serialize_natural_keys N/A N/A N/A TypeError N/A N/A raw_data N/A N/A serializers serialize N/A self serializer_name N/A queryset fields query_fields use_natural_keys N/A self serialize_natural_keys N/A obj raw_data N/A N/A N/A N/A obj N/A fields N/A pk N/A obj N/A pk N/A N/A N/A object_data append N/A obj N/A fields N/A is_queryset N/A N/A object_data N/A N/A object_data N/A 0 N/A get_form_kwargs N/A N/A self N/A N/A N/A kwargs N/A N/A N/A super NgCRUDView self get_form_kwargs N/A N/A kwargs N/A data N/A N/A json loads N/A N/A N/A N/A self request body decode utf-8 N/A N/A N/A pk N/A N/A self request GET N/A N/A self slug_field N/A N/A self request GET N/A N/A N/A kwargs N/A instance N/A N/A self get_object N/A kwargs N/A get_object N/A N/A self N/A N/A N/A N/A pk N/A N/A self request GET N/A N/A N/A N/A N/A N/A self model objects get pk N/A N/A N/A self request GET N/A pk N/A N/A N/A N/A self slug_field N/A N/A self request GET N/A N/A N/A N/A N/A N/A self model objects get N/A N/A self slug_field N/A N/A N/A self request GET N/A N/A self slug_field N/A N/A NgMissingParameterError Attempted to get an object by 'pk' or slug field, but no identifier is present. Missing GET parameter? N/A get_fields N/A N/A self N/A N/A N/A 
        Get fields to return from a query.
        Can be overridden (e.g. to use a query parameter).
         N/A N/A self fields N/A get_queryset N/A N/A self N/A N/A N/A 
        Get query to use in ng_query
        Allows for easier overriding
         N/A N/A N/A N/A N/A self model objects all N/A ng_query N/A N/A self request N/A args kwargs N/A N/A 
        Used when angular's query() method is called
        Build an array of all objects, return json response
         N/A N/A N/A self build_json_response N/A N/A self get_queryset N/A ng_get N/A N/A self request N/A args kwargs N/A N/A 
        Used when angular's get() method is called
        Returns a JSON response of a single object dictionary
         N/A N/A N/A self build_json_response N/A N/A self get_object N/A ng_save N/A N/A self request N/A args kwargs N/A N/A 
        Called on $save()
        Use modelform to save new object or modify an existing one
         N/A form N/A N/A self get_form N/A N/A self get_form_class N/A N/A N/A form is_valid N/A N/A obj N/A N/A form save N/A N/A N/A self build_json_response obj N/A N/A ValidationError N/A form errors N/A ng_delete N/A N/A self request N/A args kwargs N/A N/A 
        Delete object and return it's data in JSON encoding
        The response is build before the object is actually deleted
        so that we can still retrieve a serialization in the response
        even with a m2m relationship
         N/A N/A pk N/A request GET N/A N/A N/A NgMissingParameterError Object id is required to delete. N/A obj N/A N/A self get_object N/A response N/A N/A self build_json_response obj N/A N/A N/A obj delete N/A response N/A N/A