From f8159762035ce0af19d28d2576cb141fac8dcfb6 Mon Sep 17 00:00:00 2001 From: Seth Wang Date: Mon, 29 Jul 2024 12:49:21 +0800 Subject: [PATCH] fixup! fix(migration): make migration compatible with django 3 and 4 --- rest_framework_idempotency_key/migrations/0003_remove_user.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rest_framework_idempotency_key/migrations/0003_remove_user.py b/rest_framework_idempotency_key/migrations/0003_remove_user.py index 52641d8..d3a818c 100644 --- a/rest_framework_idempotency_key/migrations/0003_remove_user.py +++ b/rest_framework_idempotency_key/migrations/0003_remove_user.py @@ -2,6 +2,7 @@ from django.db import migrations, models + def remove_duplicated_records(apps, schema_editor): IdempotencyKey = apps.get_model('rest_framework_idempotency_key', 'IdempotencyKey') existed_keys = set() @@ -11,6 +12,7 @@ def remove_duplicated_records(apps, schema_editor): else: existed_keys.add(id_key.idempotency_key) + class Migration(migrations.Migration): dependencies = [