diff --git a/src/database/migrations/0019_alter_googleuser_family_name_and_more.py b/src/database/migrations/0019_alter_googleuser_family_name_and_more.py new file mode 100644 index 00000000..bb31adcb --- /dev/null +++ b/src/database/migrations/0019_alter_googleuser_family_name_and_more.py @@ -0,0 +1,27 @@ +# Generated by Django 4.2.7 on 2023-11-19 22:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("database", "0018_searchmodelconfig_delete_searchmodel"), + ] + + operations = [ + migrations.AlterField( + model_name="googleuser", + name="family_name", + field=models.CharField(blank=True, default=None, max_length=200, null=True), + ), + migrations.AlterField( + model_name="googleuser", + name="given_name", + field=models.CharField(blank=True, default=None, max_length=200, null=True), + ), + migrations.AlterField( + model_name="googleuser", + name="name", + field=models.CharField(blank=True, default=None, max_length=200, null=True), + ), + ] diff --git a/src/database/models/__init__.py b/src/database/models/__init__.py index 92848e5c..92da3e6e 100644 --- a/src/database/models/__init__.py +++ b/src/database/models/__init__.py @@ -27,9 +27,9 @@ class GoogleUser(models.Model): sub = models.CharField(max_length=200) azp = models.CharField(max_length=200) email = models.CharField(max_length=200) - name = models.CharField(max_length=200) - given_name = models.CharField(max_length=200) - family_name = models.CharField(max_length=200) + name = models.CharField(max_length=200, null=True, default=None, blank=True) + given_name = models.CharField(max_length=200, null=True, default=None, blank=True) + family_name = models.CharField(max_length=200, null=True, default=None, blank=True) picture = models.CharField(max_length=200, null=True, default=None) locale = models.CharField(max_length=200)