Commit fb3e4847 authored by amandazk's avatar amandazk

Senha e username para pessoas

parent d5a1c5b3
# Generated by Django 3.1.3 on 2021-01-04 13:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pessoas', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='pessoa',
name='password',
field=models.CharField(default='', max_length=30),
preserve_default=False,
),
migrations.AddField(
model_name='pessoa',
name='username',
field=models.CharField(default=' ', max_length=100, unique=True),
preserve_default=False,
),
]
......@@ -5,6 +5,8 @@ class Pessoa(models.Model):
pessoa_id = models.AutoField(primary_key=True)
cpf_pessoa = models.CharField(max_length=11, unique=True, blank=False)
nome_pessoa = models.CharField(max_length=200, blank=False)
username = models.CharField(max_length=100, blank=False, unique=True)
password = models.CharField(max_length=30, blank=False)
nasc_pessoa = models.DateField()
email_pessoa = models.EmailField(blank=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment