Module ImportFrom alias alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults kwarg body TryExcept body For NameStore Call AttributeLoad NameLoad attr body Print NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Import alias Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str attr Str Str attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Yield Str Expr Yield Str Expr Yield Str Expr Yield Str Expr Yield Str Expr Yield Str Expr Yield Str Expr Yield Str Expr Yield Str Expr Yield Str Expr Yield Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Yield BinOpMod Str Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Dict TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Dict If BoolOpOr CompareIn Str NameLoad CompareIn Str NameLoad Call AttributeLoad NameLoad attr NameLoad CompareNotEq NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Str Expr Call AttributeLoad NameLoad attr Str If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str If CompareIn NameLoad NameLoad body Assign NameStore BoolOpOr BoolOpAnd CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num NameLoad Str Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Assign NameStore BinOpMod Str NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse Assign SubscriptStore NameLoad Index Str NameLoad orelse TryExcept body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str If CompareIs Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareEq NameLoad Str SubscriptLoad NameLoad Index Num body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num If CompareIn NameLoad NameLoad body If SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse If SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad AugAssignAdd NameStore Str If BoolOpAnd CompareEq NameLoad Str CompareEq NameLoad Str CompareEq NameLoad Dict Str NameLoad body Continue If SubscriptLoad NameLoad Index Num body Assign SubscriptStore NameLoad Index Str NameLoad If UnaryOpNot CompareIn NameLoad TupleLoad Str Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str AugAssignAdd NameStore Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore Str If NameLoad body AugAssignAdd NameStore BinOpAdd Str Call AttributeLoad Str attr NameLoad Expr Yield BinOpMod Str NameLoad Expr Yield Str Expr Yield BinOpMod Str NameLoad Expr Yield Str decorator_list decorator_list
N/A django.core.management.base NoArgsCommand CommandError Command N/A NoArgsCommand N/A N/A help Introspects the database tables in the given database and outputs a Django model module. N/A requires_model_validation False handle_noargs N/A N/A self N/A options N/A N/A N/A N/A line N/A N/A self handle_inspection N/A N/A line N/A N/A N/A NotImplementedError N/A N/A N/A CommandError Database inspection isn't supported for the currently selected database backend. N/A handle_inspection N/A N/A self N/A N/A django.db connection N/A keyword N/A table2model N/A N/A N/A table_name N/A N/A N/A N/A N/A N/A N/A N/A N/A table_name title replace _ replace replace - N/A cursor N/A N/A connection cursor N/A N/A # This is an auto-generated Django model module. N/A N/A # You'll have to do the following manually to clean this up: N/A N/A #     * Rearrange models' order N/A N/A #     * Make sure each model has one field with primary_key=True N/A N/A # Feel free to rename the models, but don't rename db_table values or field names. N/A N/A # N/A N/A # Also note: You'll have to insert the output of 'django-admin.py sqlcustom [appname]' N/A N/A # into your database. N/A N/A N/A N/A from django.db import models N/A N/A N/A table_name N/A N/A N/A connection introspection get_table_list cursor N/A N/A N/A N/A class %s(models.Model): N/A table2model table_name N/A N/A N/A relations N/A N/A N/A connection introspection get_relations cursor table_name N/A N/A N/A NotImplementedError N/A N/A relations N/A N/A N/A N/A indexes N/A N/A N/A connection introspection get_indexes cursor table_name N/A N/A N/A NotImplementedError N/A N/A indexes N/A N/A N/A i row N/A enumerate N/A N/A N/A connection introspection get_table_description cursor table_name N/A N/A column_name N/A row N/A 0 N/A att_name N/A N/A column_name lower N/A comment_notes N/A N/A extra_params N/A N/A N/A N/A att_name N/A - att_name N/A N/A keyword iskeyword att_name N/A column_name att_name N/A N/A N/A extra_params N/A db_column column_name N/A N/A att_name N/A N/A att_name N/A N/A att_name replace _ N/A N/A N/A comment_notes append Field renamed to remove spaces. N/A N/A - att_name N/A N/A att_name N/A N/A att_name replace - _ N/A N/A N/A comment_notes append Field renamed to remove dashes. N/A N/A N/A keyword iskeyword att_name N/A N/A att_name _field N/A N/A N/A comment_notes append Field renamed because it was a Python reserved word. N/A N/A column_name att_name N/A N/A N/A N/A comment_notes append Field name made lowercase. N/A N/A i relations N/A N/A rel_to N/A N/A N/A N/A N/A relations N/A i N/A 1 table_name 'self' N/A table2model N/A N/A relations N/A i N/A 1 N/A field_type N/A ForeignKey(%s rel_to N/A N/A N/A att_name endswith _id N/A N/A att_name N/A att_name N/A -3 N/A N/A N/A extra_params N/A db_column column_name N/A N/A N/A N/A field_type N/A N/A N/A connection introspection data_types_reverse N/A N/A row N/A 1 N/A N/A N/A KeyError N/A N/A field_type TextField N/A N/A N/A comment_notes append This field type is a guess. N/A N/A N/A type field_type tuple N/A N/A N/A field_type new_params field_type N/A N/A N/A extra_params update new_params N/A N/A N/A field_type CharField N/A row N/A 3 N/A N/A N/A extra_params N/A max_length N/A row N/A 3 N/A N/A field_type DecimalField N/A N/A N/A extra_params N/A max_digits N/A row N/A 4 N/A N/A extra_params N/A decimal_places N/A row N/A 5 N/A N/A column_name indexes N/A N/A N/A N/A indexes N/A column_name N/A primary_key N/A N/A N/A extra_params N/A primary_key True N/A N/A N/A N/A indexes N/A column_name N/A unique N/A N/A N/A extra_params N/A unique True N/A field_type ( N/A N/A N/A att_name id N/A field_type AutoField( N/A extra_params N/A primary_key True N/A N/A N/A N/A row N/A 6 N/A N/A N/A extra_params N/A blank True N/A N/A N/A field_type N/A TextField( CharField( N/A N/A N/A extra_params N/A null True N/A field_desc N/A %s = models.%s N/A att_name field_type N/A extra_params N/A N/A N/A N/A N/A field_desc endswith ( N/A N/A field_desc ,  N/A field_desc N/A N/A ,  join N/A N/A %s=%r N/A k v N/A N/A k v N/A N/A extra_params items N/A field_desc ) N/A comment_notes N/A N/A field_desc N/A  #  N/A N/A join comment_notes N/A N/A N/A     %s field_desc N/A N/A     class Meta: N/A N/A N/A         db_table = %r table_name N/A N/A N/A N/A