adress optionall

This commit is contained in:
Martin Quarda 2024-05-06 11:28:35 +02:00
parent e1a6fabbf6
commit 588b06c73d
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 4.2.11 on 2024-05-06 09:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('alkatorapi', '0005_user_starting_number_alter_user_date_of_birth_and_more'),
]
operations = [
migrations.AlterField(
model_name='user',
name='address',
field=models.CharField(blank=True, max_length=255, null=True),
),
]

View File

@ -4,7 +4,7 @@ from django.db import models
class User(models.Model):
first_name = models.CharField(max_length=120)
last_name = models.CharField(max_length=120)
address = models.CharField(max_length=255)
address = models.CharField(max_length=255, null=True, blank=True)
email = models.EmailField(max_length=120, null=True, blank=True)
date_of_birth = models.DateField(null=True, blank=True)
register_date = models.DateTimeField(auto_now=True)