Skip to content

angee.parties.runtime_migrations.handle_normalized_value

Backfill the persisted comparison value for retained Handle rows.

applies

python
def applies(project_state: ProjectState) -> bool

Return whether Handle has its source fields but not normalized_value.

backfill_normalized_values

python
def backfill_normalized_values(apps, schema_editor) -> None

Populate retained handles in bounded batches before enforcing NOT NULL.

Migration

python
class Migration(migrations.Migration)

Add, backfill, index, and require Handle.normalized_value.

Released under the AGPL-3.0 License.