Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias alias FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword Call NameLoad keyword NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict NameLoad TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad BinOpMod Str NameLoad BinOpMod Str NameLoad Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore IfExp NameLoad Str Str Return Call AttributeLoad NameLoad attr keyword Dict NameLoad NameLoad keyword ListLoad BinOpMod Str TupleLoad NameLoad NameLoad keyword ListLoad BinOpAdd NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore IfExp CompareEq NameLoad NameLoad Str BinOpMod Str NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad Call NameLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Str Return BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad Str NameLoad decorator_list decorator_list
N/A N/A itertools django.conf settings django.db models django.utils translation translation_utils olympia.addons.query IndexCompiler IndexQuery order_by_translation N/A N/A qs fieldname N/A N/A N/A 
    Order the QuerySet by the translated field, honoring the current and
    fallback locales.  Returns a new QuerySet.

    The model being sorted needs a get_fallback() classmethod that describes
    the fallback locale.  get_fallback() can return a string or a Field.
     N/A N/A N/A fieldname startswith - N/A N/A desc True N/A fieldname N/A fieldname N/A 1 N/A N/A desc False N/A qs N/A N/A qs all N/A model N/A qs model N/A field N/A N/A N/A model _meta get_field fieldname N/A connection N/A N/A N/A model _meta db_table N/A N/A N/A N/A field rel to _meta db_table N/A N/A field rel field_name N/A N/A N/A N/A qs query tables N/A N/A N/A N/A N/A qs query get_initial_alias N/A N/A qs query N/A N/A N/A qs query clone TranslationQuery N/A t1 N/A N/A N/A qs query join connection join_field field reuse N/A set nullable True N/A t2 N/A N/A N/A qs query join connection join_field field reuse N/A set nullable True N/A N/A N/A qs query translation_aliases N/A field N/A t1 t2 N/A N/A f1 f2 N/A N/A %s.`localized_string` t1 N/A %s.`localized_string` t2 N/A name N/A translated_%s N/A field column N/A ifnull N/A IFNULL(%s, %s) N/A f1 f2 N/A prefix N/A desc - N/A N/A N/A qs extra select N/A name ifnull where N/A N/A (%s IS NOT NULL OR %s IS NOT NULL) N/A f1 f2 order_by N/A N/A prefix name N/A TranslationQuery N/A IndexQuery N/A N/A 
    Overrides sql.Query to hit our special compiler that knows how to JOIN
    translations.
     clone N/A N/A self klass N/A None kwargs N/A N/A c N/A N/A N/A super TranslationQuery self clone klass kwargs N/A N/A c translation_aliases N/A self translation_aliases N/A c N/A get_compiler N/A N/A self using connection N/A None None N/A N/A c N/A N/A N/A super TranslationQuery self get_compiler using connection N/A N/A SQLCompiler self N/A c connection N/A c using N/A N/A SQLCompiler N/A IndexCompiler N/A N/A Overrides get_from_clause to LEFT JOIN translations with a locale. get_from_clause N/A N/A self N/A N/A N/A old_tables N/A list N/A N/A self query tables N/A table N/A N/A itertools chain N/A N/A N/A N/A self query translation_aliases values N/A N/A N/A N/A N/A N/A self query tables remove table N/A N/A joins params N/A N/A N/A super SQLCompiler self get_from_clause N/A N/A N/A params append N/A N/A translation_utils get_language N/A N/A hasattr N/A N/A self query model get_fallback N/A N/A fallback N/A N/A N/A N/A self query model get_fallback N/A N/A fallback N/A settings LANGUAGE_CODE N/A N/A N/A isinstance fallback N/A models Field N/A N/A N/A N/A params append fallback N/A N/A field aliases N/A N/A N/A N/A self query translation_aliases items N/A N/A N/A t1 t2 aliases N/A N/A N/A joins append N/A N/A self join_with_locale t1 N/A N/A N/A joins append N/A N/A self join_with_locale t2 fallback N/A N/A N/A self query tables old_tables N/A N/A joins params N/A join_with_locale N/A N/A self alias fallback N/A None N/A N/A qn N/A self quote_name_unless_alias N/A qn2 N/A N/A N/A self connection ops quote_name N/A mapping N/A N/A N/A self query alias_map N/A alias N/A N/A name alias join_type lhs join_cols _ join_field mapping N/A lhs_col N/A join_field column N/A rhs_col join_cols N/A alias_str N/A N/A alias name N/A  %s alias N/A N/A isinstance fallback N/A models Field N/A N/A fallback_str N/A %s.%s N/A N/A qn N/A N/A N/A N/A self query model _meta db_table N/A qn N/A fallback column N/A N/A fallback_str %s N/A N/A %s %s%s ON (%s.%s = %s.%s AND %s.%s = %s) N/A join_type N/A qn name alias_str N/A qn lhs N/A qn2 lhs_col N/A qn alias N/A qn2 rhs_col N/A qn alias N/A qn locale fallback_str N/A N/A