Module Import alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias alias ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot Call NameLoad NameLoad NameLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr orelse Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad For NameStore NameLoad body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad For NameStore NameLoad body If Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr GeneratorExp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A itertools django.apps AppConfig apps django.db.models DateField DateTimeField django.db.models.fields.related RelatedField ReverseSingleRelatedObjectDescriptor natural_query.fields NaturalQueryField natural_query.query NaturalQueryDescriptor DateNaturalQueryDescriptor DateTimeNaturalQueryDescriptor PrimaryKeyNaturalQueryDescriptor ReverseSingleRelatedObjectNaturalQueryDescriptor NaturalQueryConfig N/A AppConfig N/A N/A name natural_query naturalize_model N/A N/A self model N/A N/A N/A N/A N/A isinstance N/A model pk PrimaryKeyNaturalQueryDescriptor N/A N/A N/A model pk N/A PrimaryKeyNaturalQueryDescriptor N/A non_natural_fields N/A field N/A field N/A N/A model _meta fields N/A N/A isinstance field NaturalQueryField N/A field non_natural_fields N/A N/A N/A N/A hasattr model N/A field name N/A N/A N/A isinstance field DateTimeField N/A N/A N/A setattr model N/A field name N/A DateTimeNaturalQueryDescriptor N/A field name N/A N/A N/A isinstance field DateField N/A N/A N/A setattr model N/A field name N/A DateNaturalQueryDescriptor N/A field name N/A N/A N/A setattr model N/A field name N/A NaturalQueryDescriptor N/A field name N/A non_natural_foreign_key_fields N/A field N/A field N/A N/A model _meta fields N/A isinstance field RelatedField N/A field non_natural_foreign_key_fields N/A N/A relation_id_attribute_name N/A %s_id N/A field name N/A N/A N/A hasattr model relation_id_attribute_name N/A N/A N/A setattr model relation_id_attribute_name N/A NaturalQueryDescriptor relation_id_attribute_name N/A naturalize_model_relationships N/A N/A self model N/A N/A N/A non_natural_foreign_key_fields N/A field N/A field N/A N/A model _meta fields N/A isinstance field RelatedField N/A field non_natural_foreign_key_fields N/A N/A N/A isinstance N/A getattr model N/A field name ReverseSingleRelatedObjectDescriptor N/A N/A descriptor N/A ReverseSingleRelatedObjectNaturalQueryDescriptor field N/A N/A setattr model N/A field name descriptor N/A ready N/A N/A self N/A N/A N/A 
        Temporary code that monkeypatches the model classes.
         N/A app_configs N/A N/A apps get_app_configs N/A models N/A tuple N/A N/A N/A itertools chain from_iterable N/A N/A N/A app_config get_models N/A app_config app_configs N/A model models N/A N/A N/A N/A self naturalize_model model N/A model models N/A N/A N/A N/A self naturalize_model_relationships model N/A N/A