From 66ab43bf2bb31589a7eb3acf098ea73b33d1ffb8 Mon Sep 17 00:00:00 2001 From: Arthur-TRT Date: Tue, 17 May 2022 17:34:49 +0200 Subject: [PATCH] Correcting typo --- src/accounts/migrations/0010_auto_20220517_1452.py | 2 +- src/accounts/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounts/migrations/0010_auto_20220517_1452.py b/src/accounts/migrations/0010_auto_20220517_1452.py index 0c0cd1d..88f4fdf 100644 --- a/src/accounts/migrations/0010_auto_20220517_1452.py +++ b/src/accounts/migrations/0010_auto_20220517_1452.py @@ -25,7 +25,7 @@ class Migration(migrations.Migration): ), migrations.AddField( model_name='userprofileinfo', - name='cmapus', + name='campus', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='accounts.campus'), ), ] diff --git a/src/accounts/models.py b/src/accounts/models.py index 5408b21..7bf0c2a 100644 --- a/src/accounts/models.py +++ b/src/accounts/models.py @@ -13,7 +13,7 @@ class UserProfileInfo(models.Model): token = models.CharField(max_length=200, blank=True) discord_id = models.CharField(max_length=20, null=True, blank=True, unique=True) intra42_id = models.CharField(max_length=20, null=True, blank=True, unique=True) - cmapus = models.ForeignKey('Campus', on_delete=models.DO_NOTHING, null=True, blank=True) + campus = models.ForeignKey('Campus', on_delete=models.DO_NOTHING, null=True, blank=True) intra42_campus = models.CharField(max_length=50, null=True, blank=True) intra42_campus_id = models.CharField(max_length=10, null=True, blank=True) member = models.BooleanField(default=False)