Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias alias alias ImportFrom alias alias alias ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Return Dict Str Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return Dict Str Str AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr keyword Call NameLoad Str attr Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad Return NameLoad decorator_list Return Dict Str Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict If Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Call NameLoad keyword Str keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body If UnaryOpNot Call NameLoad Call AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Return Call NameLoad keyword Num decorator_list decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict If Call NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Call NameLoad keyword Str keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Dict If Call NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Call NameLoad keyword Str keyword TupleLoad Call NameLoad keyword Str keyword Str Call NameLoad keyword Str keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpOr UnaryOpNot NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Return Call NameLoad keyword Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad If NameLoad body Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareEq NameLoad Call NameLoad NameLoad body Return TupleLoad NameLoad NameLoad Return TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A json django.db.models Count django.http HttpResponse polls.models Question Choice Vote polls.resource Action Attribute Resource CollectionResource SingleObjectMixin polls.features can_create_question can_delete_question can_vote_choice RootResource N/A Resource N/A N/A uri / get_relations N/A N/A self N/A N/A N/A N/A questions N/A QuestionCollectionResource N/A can_embed N/A N/A self relation N/A N/A N/A False N/A N/A QuestionResource N/A Resource SingleObjectMixin N/A N/A model Question get_uri N/A N/A self N/A N/A N/A N/A N/A /questions/{} format N/A N/A N/A self get_object pk N/A get_attributes N/A N/A self N/A N/A N/A question N/A N/A self get_object N/A N/A question published_at N/A question question_text N/A N/A N/A question published_at isoformat N/A get_relations N/A N/A self N/A N/A N/A choices N/A N/A N/A N/A N/A N/A N/A self get_object choices annotate vote_count N/A Count votes order_by -vote_count choice_text choice_resource N/A N/A choice N/A N/A N/A resource N/A ChoiceResource N/A N/A resource obj choice N/A N/A resource request N/A getattr self request None N/A resource N/A N/A N/A choices N/A map choice_resource N/A list choices N/A get_actions N/A N/A self N/A N/A N/A actions N/A N/A N/A can_delete_question N/A N/A self get_object N/A self request N/A N/A N/A actions N/A delete N/A Action method DELETE attributes None N/A actions N/A delete N/A N/A self request N/A args kwargs N/A N/A N/A N/A can_delete_question N/A N/A self get_object request N/A N/A N/A N/A self http_method_not_allowed request N/A N/A N/A N/A N/A self get_object delete N/A N/A HttpResponse status 204 N/A N/A ChoiceResource N/A Resource SingleObjectMixin N/A N/A model Choice get_uri N/A N/A self N/A N/A N/A choice N/A N/A self get_object N/A N/A N/A /questions/{}/choices/{} format N/A N/A choice question pk N/A choice pk N/A get_attributes N/A N/A self N/A N/A N/A choice N/A N/A self get_object N/A N/A N/A hasattr choice vote_count N/A N/A N/A choice vote_count N/A N/A N/A choice votes count N/A N/A choice votes N/A choice choice_text N/A choice vote_count N/A get_actions N/A N/A self N/A N/A N/A actions N/A N/A N/A can_vote_choice N/A self request N/A N/A N/A actions N/A vote N/A Action method POST attributes None N/A actions N/A post N/A N/A self request N/A args kwargs N/A N/A N/A N/A can_vote_choice N/A self request N/A N/A N/A N/A self http_method_not_allowed request N/A N/A N/A N/A N/A self get_object vote N/A response N/A N/A self get request N/A N/A response status_code 201 N/A response N/A N/A QuestionCollectionResource N/A CollectionResource N/A N/A resource QuestionResource N/A model Question N/A relation questions N/A uri /questions get_actions N/A N/A self N/A N/A N/A actions N/A N/A N/A can_create_question N/A self request N/A N/A N/A actions N/A create N/A Action method POST attributes N/A N/A Attribute name question category text N/A Attribute name choices category array[text] N/A actions N/A post N/A N/A self request N/A N/A N/A N/A N/A can_create_question N/A self request N/A N/A N/A N/A self http_method_not_allowed request N/A body N/A N/A json loads N/A request body N/A question_text N/A N/A body get question N/A choices N/A N/A body get choices N/A N/A N/A question_text N/A N/A isinstance choices list N/A N/A N/A HttpResponse status 400 N/A N/A question created N/A N/A self get_or_create question_text choices N/A resource N/A N/A self resource N/A N/A resource obj question N/A N/A resource request request N/A response N/A N/A resource get request N/A created N/A N/A N/A response status_code 201 N/A N/A response N/A Location N/A N/A resource get_uri N/A response N/A create_question N/A N/A self question_text choice_texts N/A N/A N/A question N/A Question question_text question_text N/A N/A N/A question save N/A choice_text choice_texts N/A N/A N/A N/A N/A Choice question question choice_text choice_text save N/A question N/A get_or_create N/A N/A self question_text choice_texts N/A N/A N/A N/A N/A question N/A N/A N/A N/A N/A Question objects filter question_text question_text first N/A N/A N/A N/A Question DoesNotExist N/A N/A question None N/A question N/A N/A choices N/A map N/A N/A N/A c N/A N/A c choice_text N/A N/A N/A question choices order_by choice_text N/A N/A choices N/A sorted choice_texts N/A N/A N/A question False N/A N/A N/A N/A self create_question question_text choice_texts True N/A N/A