annotations.migrations.0004_relation_data_migration module

class annotations.migrations.0004_relation_data_migration.Migration(name, app_label)[source]

Bases: django.db.migrations.migration.Migration

dependencies = [(u'contenttypes', u'0002_remove_content_type_name'), (u'concepts', u'__first__'), (u'annotations', u'0003_auto_relation_generic_fields')]
operations = [<RunPython <function populate_relation_generic_fields>, <function populate_relation_generic_fields_reverse>>]
annotations.migrations.0004_relation_data_migration.populate_relation_generic_fields(apps, schema_editor)[source]

Move old references to Appellations in Relation.source and Relation.object to new GenericForeignKey fields on Relation.

annotations.migrations.0004_relation_data_migration.populate_relation_generic_fields_reverse(apps, schema_editor)[source]