mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Make all name-related fields nullable within the GoogleUser
This commit is contained in:
parent
4def8cce36
commit
237195e20e
2 changed files with 30 additions and 3 deletions
|
@ -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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -27,9 +27,9 @@ class GoogleUser(models.Model):
|
||||||
sub = models.CharField(max_length=200)
|
sub = models.CharField(max_length=200)
|
||||||
azp = models.CharField(max_length=200)
|
azp = models.CharField(max_length=200)
|
||||||
email = models.CharField(max_length=200)
|
email = models.CharField(max_length=200)
|
||||||
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)
|
given_name = models.CharField(max_length=200, null=True, default=None, blank=True)
|
||||||
family_name = models.CharField(max_length=200)
|
family_name = models.CharField(max_length=200, null=True, default=None, blank=True)
|
||||||
picture = models.CharField(max_length=200, null=True, default=None)
|
picture = models.CharField(max_length=200, null=True, default=None)
|
||||||
locale = models.CharField(max_length=200)
|
locale = models.CharField(max_length=200)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue