diff --git a/backend/users/migrations/0006_user_country.py b/backend/users/migrations/0006_user_country.py new file mode 100644 index 0000000000..151ede9041 --- /dev/null +++ b/backend/users/migrations/0006_user_country.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.3 on 2023-09-24 17:19 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('users', '0005_remove_user_country'), + ] + + operations = [ + migrations.AddField( + model_name='user', + name='country', + field=models.CharField(blank=True, max_length=50, verbose_name='country'), + ), + ] diff --git a/backend/users/models.py b/backend/users/models.py index 4a325e98f5..81d994b1a9 100644 --- a/backend/users/models.py +++ b/backend/users/models.py @@ -15,6 +15,7 @@ class User(AbstractBaseUser, PermissionsMixin): name = models.CharField(_("name"), max_length=300, blank=True) gender = models.CharField(_("gender"), choices=GENDERS, max_length=10, blank=True) + country = models.CharField(_("country"), max_length=50, blank=True) date_birth = models.DateField(_("date of birth"), null=True) open_to_recruiting = models.BooleanField(_("open to recruiting"), default=False) open_to_newsletter = models.BooleanField(_("open to newsletter"), default=False)