Module polls.migrations.0001_initial

Classes

class Migration (name, app_label)

The base class for all migrations.

Migration files will import this from django.db.migrations.Migration and subclass it as a class called Migration. It will have one or more of the following attributes:

  • operations: A list of Operation instances, probably from django.db.migrations.operations
  • dependencies: A list of tuples of (app_path, migration_name)
  • run_before: A list of tuples of (app_path, migration_name)
  • replaces: A list of migration_names

Note that all migrations come out of migrations and into the Loader or Graph as instances, having been initialized with their app label and name.

Ancestors

  • django.db.migrations.migration.Migration

Class variables

var dependencies

The type of the None singleton.

var initial

The type of the None singleton.

var operations

The type of the None singleton.