Skip to content

Commit

Permalink
Add back country field to PyCon BE users (#3571)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoacierno authored Sep 24, 2023
1 parent dad8279 commit c7f7f5a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions backend/users/migrations/0006_user_country.py
Original file line number Diff line number Diff line change
@@ -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'),
),
]
1 change: 1 addition & 0 deletions backend/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

1 comment on commit c7f7f5a

@vercel
Copy link

@vercel vercel bot commented on c7f7f5a Sep 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pycon – ./frontend/

pycon-python-italia.vercel.app
pycon.it
pycon-git-main-python-italia.vercel.app
www.pycon.it
2023.pycon.it

Please sign in to comment.