class documentation

class RenameContentType(migrations.RunPython): (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method rename_backward Undocumented
Method rename_forward Undocumented
Instance Variable app_label Undocumented
Instance Variable new_model Undocumented
Instance Variable old_model Undocumented
Method _rename Undocumented

Inherited from RunPython:

Static Method noop Undocumented
Method database_backwards Perform the mutation on the database schema in the reverse direction - e.g. if this were CreateModel, it would in fact drop the model's table.
Method database_forwards Perform the mutation on the database schema in the normal (forwards) direction.
Method deconstruct Return a 3-tuple of class import path (or just name if it lives under django.db.migrations), positional arguments, and keyword arguments.
Method describe Output a brief summary of what the action does.
Method state_forwards Take the state from the previous migration, and mutate it so that it matches what this migration would perform.
Class Variable reduces_to_sql Undocumented
Instance Variable atomic Undocumented
Instance Variable code Undocumented
Instance Variable elidable Undocumented
Instance Variable hints Undocumented
Instance Variable reverse_code Undocumented
Property reversible Undocumented

Inherited from Operation (via RunPython):

Method __new__ Undocumented
Method __repr__ Undocumented
Method allow_migrate_model Return whether or not a model may be migrated.
Method reduce Return either a list of operations the actual operation should be replaced with or a boolean that indicates whether or not the specified operation can be optimized across.
Method references_field Return True if there is a chance this operation references the given field name, with an app label for accuracy.
Method references_model Return True if there is a chance this operation references the given model name (as a string), with an app label for accuracy.
Class Variable serialization_expand_args Undocumented
Property migration_name_fragment A filename part suitable for automatically naming a migration containing this operation, or None if not applicable.
Instance Variable _constructor_args Undocumented
def __init__(self, app_label, old_model, new_model): (source)
def rename_backward(self, apps, schema_editor): (source)

Undocumented

def rename_forward(self, apps, schema_editor): (source)

Undocumented

app_label = (source)

Undocumented

new_model = (source)

Undocumented

old_model = (source)

Undocumented

def _rename(self, apps, schema_editor, old_model, new_model): (source)

Undocumented