django_evolution.mutations

Mutations for models, fields, and applications.

Changed in version 2.2: The classes have all been moved to nested modules. This module will provide forwarding imports, and will continue to be the primary place to import these mutations.

AddField

A mutation that adds a field to a model.

BaseModelFieldMutation

Base class for any fields that mutate a model.

BaseModelMutation

Base class for a mutation affecting a single model.

BaseUpgradeMethodMutation

Base class for a mutation that changes an app's upgrade method.

BaseMutation

Base class for a schema mutation.

Simulation

State for a database mutation simulation.

ChangeField

A mutation that changes attributes on a field on a model.

ChangeMeta

A mutation that changes meta properties on a model.

DeleteApplication

A mutation that deletes an application.

DeleteField

A mutation that deletes a field from a model.

DeleteModel

A mutation that deletes a model.

MoveToDjangoMigrations

A mutation that uses Django migrations for an app's future upgrades.

RenameAppLabel

A mutation that renames the app label for an application.

RenameField

A mutation that renames a field on a model.

RenameModel

A mutation that renames a model.

SQLMutation

A mutation that executes SQL on the database.