django_evolution.signals

Signals for monitoring the evolution process.

django_evolution.signals.evolving = <django.dispatch.dispatcher.Signal object>

Emitted when an Evolver begins evolving.

django_evolution.signals.evolved = <django.dispatch.dispatcher.Signal object>

Emitted when an Evolver finishes evolving.

django_evolution.signals.evolving_failed = <django.dispatch.dispatcher.Signal object>

Emitted when an Evolver fails evolving.

Parameters

exception (Exception) – The exception raised when evolution failed.

django_evolution.signals.applying_evolution = <django.dispatch.dispatcher.Signal object>

Emitted when an evolution is about to be applied to an app.

Version Changed:

2.1: Added the evolutions argument.

Parameters
  • app_label (unicode) – The label of the application being applied.

  • task (django_evolution.evolve.EvolveAppTask) – The task evolving the app.

  • evolutions (list of django_evolution.models.Evolution) – The list of evolutions that will be applied.

django_evolution.signals.applied_evolution = <django.dispatch.dispatcher.Signal object>

Emitted when an evolution has been applied to an app.

Version Changed:

2.1: Added the evolutions argument.

Parameters
  • app_label (unicode) – The label of the application being applied.

  • task (django_evolution.evolve.EvolveAppTask) – The task that evolved the app.

  • evolutions (list of django_evolution.models.Evolution) – The list of evolutions that were applied.

django_evolution.signals.applying_migration = <django.dispatch.dispatcher.Signal object>

Emitted when a migration is about to be applied to an app.

Parameters

migration (django.db.migrations.migration.Migration) – The migration that’s being applied.

django_evolution.signals.applied_migration = <django.dispatch.dispatcher.Signal object>

Emitted when a migration has been applied to an app.

Parameters

migration (django.db.migrations.migration.Migration) – The migration that was applied.

django_evolution.signals.creating_models = <django.dispatch.dispatcher.Signal object>

Emitted when creating new models for an app outside of a migration.

Note

There’s no guarantee that a created_models will be emitted in-between two creating_models.

Parameters
  • app_label (unicode) – The app label for the models being created.

  • model_names (list of unicode) – The list of models being created.

django_evolution.signals.created_models = <django.dispatch.dispatcher.Signal object>

Emitted when finished creating new models for an app outside of a migration.

Note

There’s no guarantee that a creating_models will be emitted in-between two created_models.

Parameters
  • migration (django.db.migrations.migration.Migration) – The migration that was applied.

  • model_names (list of unicode) – The list of models that were created.