Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier alias identifier alias identifier ImportFrom alias alias alias ImportFrom alias alias alias ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Num Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Num keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num If AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str orelse Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num If AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str orelse Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num If AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str orelse Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Num Num NameLoad NameLoad DictComp AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr Str keyword Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A datetime django.conf settings django.db models django.test TestCase generic_aggregation generic_annotate _generic_annotate generic_aggregate _generic_aggregate generic_filter _generic_filter generic_aggregation.utils fallback_generic_annotate fallback_generic_aggregate fallback_generic_filter generic_aggregation_tests.models Food Rating CharFieldGFK SimpleTest N/A TestCase N/A N/A PAST_DATE N/A N/A datetime datetime 2010 1 1 setUp N/A N/A self N/A N/A N/A N/A self apple N/A N/A N/A Food objects create name apple N/A N/A self orange N/A N/A N/A Food objects create name orange N/A N/A self peach N/A N/A N/A Food objects create name peach N/A N/A N/A N/A Rating objects create content_object N/A self apple rating 5 N/A N/A N/A N/A Rating objects create content_object N/A self apple rating 3 N/A N/A N/A N/A Rating objects create content_object N/A self apple rating 1 created N/A self PAST_DATE N/A N/A N/A N/A Rating objects create content_object N/A self apple rating 3 created N/A self PAST_DATE N/A N/A N/A N/A Rating objects create content_object N/A self orange rating 4 N/A N/A N/A N/A Rating objects create content_object N/A self orange rating 3 N/A N/A N/A N/A Rating objects create content_object N/A self orange rating 8 created N/A self PAST_DATE N/A generic_annotate N/A N/A self N/A args kwargs N/A N/A N/A _generic_annotate args kwargs N/A generic_aggregate N/A N/A self N/A args kwargs N/A N/A N/A _generic_aggregate args kwargs N/A generic_filter N/A N/A self N/A args kwargs N/A N/A N/A _generic_filter args kwargs N/A test_annotation N/A N/A self N/A N/A N/A annotated_qs N/A N/A N/A N/A self generic_annotate N/A N/A N/A Food objects all N/A N/A N/A Rating objects all N/A N/A models Count ratings__rating order_by -score N/A N/A N/A self assertEqual N/A N/A annotated_qs count 3 N/A N/A food_a food_b food_c annotated_qs N/A N/A N/A self assertEqual N/A food_a score 4 N/A N/A N/A self assertEqual N/A food_a name apple N/A N/A N/A self assertEqual N/A food_b score 3 N/A N/A N/A self assertEqual N/A food_b name orange N/A N/A N/A self assertEqual N/A food_c score 0 N/A N/A N/A self assertEqual N/A food_c name peach N/A annotated_qs N/A N/A self generic_annotate N/A N/A N/A Food objects all Rating N/A N/A models Sum ratings__rating N/A N/A N/A self assertEqual N/A N/A annotated_qs count 3 N/A N/A settings NULLS_ASC_SORT_FIRST N/A N/A N/A food_b food_a food_c N/A N/A annotated_qs order_by -score N/A N/A N/A food_c food_b food_a N/A N/A annotated_qs order_by -score N/A N/A N/A self assertEqual N/A food_b score 15 N/A N/A N/A self assertEqual N/A food_b name orange N/A N/A N/A self assertEqual N/A food_a score 12 N/A N/A N/A self assertEqual N/A food_a name apple N/A N/A N/A self assertEqual N/A food_c score None N/A N/A N/A self assertEqual N/A food_c name peach N/A annotated_qs N/A N/A self generic_annotate Food Rating N/A N/A models Avg ratings__rating N/A N/A N/A self assertEqual N/A N/A annotated_qs count 3 N/A N/A settings NULLS_ASC_SORT_FIRST N/A N/A N/A food_b food_a food_c N/A N/A annotated_qs order_by -score N/A N/A N/A food_c food_b food_a N/A N/A annotated_qs order_by -score N/A N/A N/A self assertEqual N/A food_b score 5 N/A N/A N/A self assertEqual N/A food_b name orange N/A N/A N/A self assertEqual N/A food_a score 3 N/A N/A N/A self assertEqual N/A food_a name apple N/A N/A N/A self assertEqual N/A food_c score None N/A N/A N/A self assertEqual N/A food_c name peach N/A test_aggregation N/A N/A self N/A N/A N/A aggregated N/A N/A self generic_aggregate Food Rating N/A N/A models Count ratings__rating N/A N/A N/A self assertEqual aggregated 7 N/A aggregated N/A N/A self generic_aggregate N/A N/A N/A Food objects all Rating N/A N/A models Sum ratings__rating N/A N/A N/A self assertEqual aggregated 27 N/A aggregated N/A N/A self generic_aggregate N/A N/A N/A Food objects filter name apple Rating N/A N/A models Count ratings__rating N/A N/A N/A self assertEqual aggregated 4 N/A aggregated N/A N/A self generic_aggregate N/A N/A N/A Food objects filter name orange Rating N/A N/A models Count ratings__rating N/A N/A N/A self assertEqual aggregated 3 N/A aggregated N/A N/A self generic_aggregate N/A N/A N/A Food objects filter name apple Rating N/A N/A models Avg ratings__rating N/A N/A N/A self assertEqual aggregated 3 N/A aggregated N/A N/A self generic_aggregate N/A N/A N/A Food objects filter name orange Rating N/A N/A models Avg ratings__rating N/A N/A N/A self assertEqual aggregated 5 N/A test_subset_annotation N/A N/A self N/A N/A N/A todays_ratings N/A N/A N/A Rating objects filter created__gte N/A N/A N/A datetime date today N/A annotated_qs N/A N/A self generic_annotate N/A N/A N/A Food objects all todays_ratings N/A N/A models Sum ratings__rating N/A N/A N/A self assertEqual N/A N/A annotated_qs count 3 N/A N/A settings NULLS_ASC_SORT_FIRST N/A N/A N/A food_a food_b food_c N/A N/A annotated_qs order_by -score N/A N/A N/A food_c food_a food_b N/A N/A annotated_qs order_by -score N/A N/A N/A self assertEqual N/A food_a score 8 N/A N/A N/A self assertEqual N/A food_a name apple N/A N/A N/A self assertEqual N/A food_b score 7 N/A N/A N/A self assertEqual N/A food_b name orange N/A N/A N/A self assertEqual N/A food_c score None N/A N/A N/A self assertEqual N/A food_c name peach N/A persimmon N/A N/A N/A Food objects create name persimmon N/A N/A N/A N/A Rating objects create content_object persimmon rating 1 created N/A self PAST_DATE N/A N/A N/A self assertEqual N/A N/A annotated_qs count 4 N/A N/A N/A self assertEqual N/A apple orange peach persimmon 8 7 None None N/A N/A food name N/A food score N/A food annotated_qs N/A test_subset_aggregation N/A N/A self N/A N/A N/A todays_ratings N/A N/A N/A Rating objects filter created__gte N/A N/A N/A datetime date today N/A aggregated N/A N/A self generic_aggregate N/A N/A N/A Food objects all todays_ratings N/A N/A models Sum ratings__rating N/A N/A N/A self assertEqual aggregated 15 N/A aggregated N/A N/A self generic_aggregate N/A N/A N/A Food objects all todays_ratings N/A N/A models Count ratings__rating N/A N/A N/A self assertEqual aggregated 4 N/A test_charfield_pks N/A N/A self N/A N/A N/A a1 N/A N/A N/A CharFieldGFK objects create name a1 content_object N/A self apple N/A a2 N/A N/A N/A CharFieldGFK objects create name a2 content_object N/A self apple N/A o1 N/A N/A N/A CharFieldGFK objects create name o1 content_object N/A self orange N/A annotated_qs N/A N/A self generic_annotate N/A N/A N/A Food objects all CharFieldGFK N/A N/A models Count char_gfk__name N/A N/A N/A self assertEqual N/A N/A annotated_qs count 3 N/A N/A food_a food_b food_c N/A N/A annotated_qs order_by -score N/A N/A N/A self assertEqual N/A food_b score 1 N/A N/A N/A self assertEqual N/A food_b name orange N/A N/A N/A self assertEqual N/A food_a score 2 N/A N/A N/A self assertEqual N/A food_a name apple N/A N/A N/A self assertEqual N/A food_c score 0 N/A N/A N/A self assertEqual N/A food_c name peach N/A aggregated N/A N/A self generic_aggregate N/A N/A N/A Food objects all CharFieldGFK N/A N/A models Count char_gfk__name N/A N/A N/A self assertEqual aggregated 3 N/A test_custom_alias N/A N/A self N/A N/A N/A annotated_qs N/A N/A self generic_annotate Food Rating N/A N/A models Count ratings__rating alias count N/A N/A food_a food_b food_c N/A N/A annotated_qs order_by -count N/A N/A N/A self assertEqual N/A food_a count 4 N/A N/A N/A self assertEqual N/A food_a name apple N/A N/A N/A self assertEqual N/A food_b count 3 N/A N/A N/A self assertEqual N/A food_b name orange N/A N/A N/A self assertEqual N/A food_c count 0 N/A N/A N/A self assertEqual N/A food_c name peach N/A test_filter N/A N/A self N/A N/A N/A ratings N/A N/A self generic_filter N/A N/A N/A Rating objects all N/A N/A N/A Food objects filter name orange N/A N/A N/A self assertEqual N/A len ratings 3 N/A obj ratings N/A N/A N/A N/A self assertEqual N/A N/A obj content_object name orange N/A test_filter_cast N/A N/A self N/A N/A N/A a1 N/A N/A N/A CharFieldGFK objects create name a1 content_object N/A self apple N/A a2 N/A N/A N/A CharFieldGFK objects create name a2 content_object N/A self apple N/A o1 N/A N/A N/A CharFieldGFK objects create name o1 content_object N/A self orange N/A qs N/A N/A self generic_filter N/A N/A N/A CharFieldGFK objects all N/A N/A N/A Food objects filter name apple N/A N/A N/A self assertEqual N/A len qs 2 N/A obj qs N/A N/A N/A N/A self assertEqual N/A N/A obj content_object name apple N/A N/A FallbackTestCase N/A SimpleTest N/A generic_annotate N/A N/A self N/A args kwargs N/A N/A N/A fallback_generic_annotate args kwargs N/A generic_aggregate N/A N/A self N/A args kwargs N/A N/A N/A fallback_generic_aggregate args kwargs N/A generic_filter N/A N/A self N/A args kwargs N/A N/A N/A fallback_generic_filter args kwargs N/A N/A