Module todo.migrations.0006_rename_usertodotemplate_template

Expand source code
# Generated by Django 4.1.1 on 2022-10-02 02:58

from django.db import migrations


class Migration(migrations.Migration):

    atomic = False

    dependencies = [
        ('todo', '0005_listitem_item_name'),
    ]

    operations = [
        migrations.RenameModel(
            old_name='UserTodoTemplate',
            new_name='Template',
        ),
    ]

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.

Expand source code
class Migration(migrations.Migration):

    atomic = False

    dependencies = [
        ('todo', '0005_listitem_item_name'),
    ]

    operations = [
        migrations.RenameModel(
            old_name='UserTodoTemplate',
            new_name='Template',
        ),
    ]

Ancestors

  • django.db.migrations.migration.Migration

Class variables

var atomic
var dependencies
var operations