adress optionall
This commit is contained in:
parent
e1a6fabbf6
commit
588b06c73d
18
alkatorapi/migrations/0006_alter_user_address.py
Normal file
18
alkatorapi/migrations/0006_alter_user_address.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
@ -4,7 +4,7 @@ from django.db import models
|
|||||||
class User(models.Model):
|
class User(models.Model):
|
||||||
first_name = models.CharField(max_length=120)
|
first_name = models.CharField(max_length=120)
|
||||||
last_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)
|
email = models.EmailField(max_length=120, null=True, blank=True)
|
||||||
date_of_birth = models.DateField(null=True, blank=True)
|
date_of_birth = models.DateField(null=True, blank=True)
|
||||||
register_date = models.DateTimeField(auto_now=True)
|
register_date = models.DateTimeField(auto_now=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user