Skip to content

Commit

Permalink
set id field type independent of DEFAULT_AUTO_FIELD
Browse files Browse the repository at this point in the history
  • Loading branch information
xi committed Mar 26, 2024
1 parent 5e98c60 commit 96960ad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions mfa/migrations/0004_alter_mfakey_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("mfa", "0003_alter_mfakey_method"),
]

operations = [
migrations.AlterField(
model_name="mfakey",
name="id",
field=models.BigAutoField(
primary_key=True, serialize=False, verbose_name="ID"
),
),
]
1 change: 1 addition & 0 deletions mfa/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@


class MFAKey(models.Model):
id = models.BigAutoField(primary_key=True, serialize=False, verbose_name='ID')
user = models.ForeignKey(
settings.AUTH_USER_MODEL, on_delete=models.CASCADE
)
Expand Down

0 comments on commit 96960ad

Please sign in to comment.