Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr TupleLoad Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults kwarg body TryExcept body For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str 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 Lambda arguments args NameParam defaults IfExp Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num NameLoad 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 Expr Yield BinOpMod Str AttributeLoad NameLoad attr Expr Yield Str Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad Call NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad body Continue Expr Yield BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr 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 Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Assign NameStore ListLoad Assign NameStore Call NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore CompareIn NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad 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 If NameLoad body Assign NameStore IfExp CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num NameLoad Str Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num If CompareIn NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad orelse Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr 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 If CompareEq NameLoad Str body Assign NameStore Str orelse 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 Call NameLoad Call 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 For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str If NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Str NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr Str If CompareGtE Call AttributeLoad NameLoad attr Str Num body While CompareGtE Call AttributeLoad NameLoad attr Str Num body Assign NameStore Call AttributeLoad NameLoad attr Str Str If CompareGtE Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Num body Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Str Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str If CompareIn NameLoad NameLoad body Assign NameStore Num While CompareIn BinOpMod Str TupleLoad NameLoad NameLoad NameLoad body AugAssignAdd NameStore Num Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareNotEq NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore ListLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num NameLoad 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 Call NameLoad SubscriptLoad NameLoad Index Num If CompareEq NameLoad Str body If BoolOpOr CompareIs SubscriptLoad NameLoad Index Num NameLoad CompareIs SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str IfExp CompareIsNot SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num Num Assign SubscriptStore NameLoad Index Str IfExp CompareIsNot SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num Num orelse Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return ListLoad Str Str BinOpMod Str NameLoad Str decorator_list decorator_list
N/A __future__ unicode_literals N/A keyword N/A re optparse make_option django.core.management.base NoArgsCommand CommandError django.db connections DEFAULT_DB_ALIAS django.utils.datastructures SortedDict 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 option_list N/A N/A NoArgsCommand option_list N/A N/A make_option --database action store dest database default DEFAULT_DB_ALIAS help Nominates a database to introspect.  Defaults to using the "default" database. N/A requires_model_validation False N/A db_module django.db 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 options N/A N/A N/A N/A N/A self stdout write N/A %s
 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 options N/A N/A N/A connection N/A connections N/A N/A N/A options get database N/A table_name_filter N/A N/A options get table_name_filter 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 strip_prefix N/A N/A N/A s N/A N/A N/A N/A s startswith u' N/A s N/A 1 s 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 #   * Remove `managed = False` lines if you wish to allow Django to create and delete the table 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 from __future__ import unicode_literals N/A N/A N/A N/A N/A from %s import models N/A self db_module N/A N/A N/A known_models N/A N/A table_name N/A N/A N/A connection introspection table_names cursor N/A N/A N/A N/A table_name_filter None N/A callable table_name_filter N/A N/A N/A N/A table_name_filter table_name N/A N/A N/A N/A N/A class %s(models.Model): N/A table2model table_name N/A N/A N/A known_models append 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 used_column_names 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 comment_notes N/A N/A extra_params N/A SortedDict N/A column_name N/A row N/A 0 N/A is_relation N/A i relations N/A N/A att_name params notes N/A N/A self normalize_col_name column_name used_column_names is_relation N/A N/A N/A extra_params update params N/A N/A N/A comment_notes extend notes N/A N/A N/A used_column_names append att_name 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 is_relation N/A N/A rel_to 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 N/A rel_to known_models N/A N/A field_type N/A ForeignKey(%s rel_to N/A N/A field_type N/A ForeignKey('%s' rel_to N/A N/A N/A field_type field_params field_notes N/A N/A self get_field_type connection table_name row N/A N/A N/A extra_params update field_params N/A N/A N/A comment_notes extend field_notes 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 field_type BooleanField( N/A N/A field_type NullBooleanField( 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=%s N/A k N/A strip_prefix N/A repr 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 meta_line N/A N/A self get_meta table_name N/A N/A N/A meta_line N/A normalize_col_name N/A N/A self col_name used_column_names is_relation N/A N/A N/A 
        Modify the column name to make it Python-compatible as a field name
         N/A field_params N/A N/A field_notes N/A N/A new_name N/A N/A col_name lower N/A N/A new_name col_name N/A N/A N/A N/A field_notes append Field name made lowercase. N/A is_relation N/A N/A N/A N/A new_name endswith _id N/A N/A new_name N/A new_name N/A -3 N/A N/A N/A field_params N/A db_column col_name N/A N/A new_name num_repl N/A N/A re subn \W _ new_name N/A N/A num_repl 0 N/A N/A N/A N/A field_notes append Field renamed to remove unsuitable characters. N/A N/A N/A N/A new_name find __ 0 N/A N/A N/A N/A N/A new_name find __ 0 N/A N/A new_name N/A N/A new_name replace __ _ N/A N/A N/A N/A N/A N/A col_name lower find __ 0 N/A N/A N/A N/A field_notes append Field renamed because it contained more than one '_' in a row. N/A N/A N/A new_name startswith _ N/A N/A new_name N/A field%s new_name N/A N/A N/A field_notes append Field renamed because it started with '_'. N/A N/A N/A new_name endswith _ N/A N/A new_name N/A %sfield new_name N/A N/A N/A field_notes append Field renamed because it ended with '_'. N/A N/A N/A keyword iskeyword new_name N/A N/A new_name _field N/A N/A N/A field_notes append Field renamed because it was a Python reserved word. N/A N/A N/A N/A new_name N/A 0 isdigit N/A N/A new_name N/A number_%s new_name N/A N/A N/A field_notes append Field renamed because it wasn't a valid Python identifier. N/A N/A new_name used_column_names N/A N/A num 0 N/A N/A N/A %s_%d N/A new_name num used_column_names N/A N/A num 1 N/A new_name N/A %s_%d N/A new_name num N/A N/A N/A field_notes append Field renamed because of name conflict. N/A N/A N/A col_name new_name field_notes N/A N/A N/A field_params N/A db_column col_name N/A N/A new_name field_params field_notes N/A get_field_type N/A N/A self connection table_name row N/A N/A N/A 
        Given the database connection, the table name, and the cursor row
        description, this routine will return the given field type name, as
        well as any additional keyword parameters and notes for the field.
         N/A field_params N/A SortedDict N/A field_notes N/A N/A N/A N/A field_type N/A N/A N/A connection introspection get_field_type N/A row N/A 1 row N/A N/A N/A KeyError N/A N/A field_type TextField N/A N/A N/A field_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 field_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 field_params N/A max_length N/A int N/A row N/A 3 N/A N/A field_type DecimalField N/A N/A N/A N/A N/A row N/A 4 None N/A N/A row N/A 5 None N/A N/A N/A N/A field_notes append max_digits and decimal_places have been guessed, as this database handles decimal fields as float N/A N/A field_params N/A max_digits N/A N/A N/A row N/A 4 None N/A row N/A 4 10 N/A N/A field_params N/A decimal_places N/A N/A N/A row N/A 5 None N/A row N/A 5 5 N/A N/A N/A field_params N/A max_digits N/A row N/A 4 N/A N/A field_params N/A decimal_places N/A row N/A 5 N/A N/A field_type field_params field_notes N/A get_meta N/A N/A self table_name N/A N/A N/A 
        Return a sequence comprising the lines of code necessary
        to construct the inner Meta class for the model corresponding
        to the given database table name.
         N/A N/A     class Meta:         managed = False N/A         db_table = '%s' table_name N/A N/A