Skip to content

Commit

Permalink
fixup! fix(migration): make migration compatible with django 3 and 4
Browse files Browse the repository at this point in the history
  • Loading branch information
pkyosx committed Jul 29, 2024
1 parent 6f2b76a commit f815976
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rest_framework_idempotency_key/migrations/0003_remove_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -11,6 +12,7 @@ def remove_duplicated_records(apps, schema_editor):
else:
existed_keys.add(id_key.idempotency_key)


class Migration(migrations.Migration):

dependencies = [
Expand Down

0 comments on commit f815976

Please sign in to comment.