diff --git a/offer_backend/apps/accounts/migrations/0003_alter_user_phone.py b/offer_backend/apps/accounts/migrations/0003_alter_user_phone.py new file mode 100644 index 0000000..5b3a66a --- /dev/null +++ b/offer_backend/apps/accounts/migrations/0003_alter_user_phone.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.20 on 2026-03-25 07:46 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('accounts', '0002_verificationcode'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='phone', + field=models.CharField(max_length=20), + ), + ] diff --git a/offer_backend/apps/accounts/models.py b/offer_backend/apps/accounts/models.py index 9ec3b81..745aaab 100644 --- a/offer_backend/apps/accounts/models.py +++ b/offer_backend/apps/accounts/models.py @@ -55,7 +55,7 @@ class User(AbstractUser): ('seeker', '求职者'), ] role = models.CharField(max_length=20, choices=ROLE_CHOICES, default='seeker') - phone = models.CharField(max_length=20, blank=True) + phone = models.CharField(max_length=20) organization = models.ForeignKey( 'organizations.Organization', null=True, blank=True, diff --git a/offer_frontend/src/views/auth/RegisterView.vue b/offer_frontend/src/views/auth/RegisterView.vue index 114148c..faf7b19 100644 --- a/offer_frontend/src/views/auth/RegisterView.vue +++ b/offer_frontend/src/views/auth/RegisterView.vue @@ -5,7 +5,7 @@ - + 注册