carga
carga
This commit is contained in:
41
autenticacion/migrations/0001_initial.py
Normal file
41
autenticacion/migrations/0001_initial.py
Normal file
@@ -0,0 +1,41 @@
|
||||
# Generated by Django 4.0.5 on 2022-06-27 13:26
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('universidad', '0001_initial'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='perfil',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('matricula', models.CharField(max_length=50, unique=True, verbose_name='Matricula ó CURP')),
|
||||
('cuatrimestre', models.CharField(blank=True, max_length=2, null=True, verbose_name='Cuatrimestre')),
|
||||
('grupo', models.CharField(choices=[('A', 'A'), ('B', 'B'), ('C', 'C'), ('D', 'D')], default='A', max_length=1, verbose_name='Grupo')),
|
||||
('direccion', models.CharField(blank=True, max_length=250, null=True, verbose_name='Domicilio')),
|
||||
('telefono', models.CharField(blank=True, max_length=15, null=True, verbose_name='Telefono')),
|
||||
('genero', models.CharField(choices=[('Estudiante', 'Estudiante'), ('Docente', 'Docente'), ('Administrativo', 'Administrativo'), ('Visitante', 'Visitante')], default='Estudiante', max_length=20, verbose_name='Genero')),
|
||||
('foto', models.ImageField(blank=True, upload_to='foto/')),
|
||||
('qr', models.ImageField(blank=True, upload_to='qr/')),
|
||||
('fecha_alta', models.DateField(auto_now_add=True, verbose_name='Fecha alta')),
|
||||
('fecha_actualizacion', models.DateField(auto_now=True, verbose_name='Fecha de Actualización')),
|
||||
('id_carrera', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='universidad.carrera', verbose_name='Carrera')),
|
||||
('usuario', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'perfil',
|
||||
'verbose_name_plural': 'perfiles',
|
||||
'ordering': ['matricula'],
|
||||
},
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 4.0.5 on 2022-07-19 04:25
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('autenticacion', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='perfil',
|
||||
name='tipo',
|
||||
field=models.CharField(choices=[('Estudiante', 'Estudiante'), ('Docente', 'Docente'), ('Administrativo', 'Administrativo'), ('Visitante', 'Visitante')], default='Estudiante', max_length=20, verbose_name='Genero'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='perfil',
|
||||
name='genero',
|
||||
field=models.CharField(choices=[('M', 'M'), ('F', 'F')], default='M', max_length=1, verbose_name='Genero'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 4.0.5 on 2022-07-19 06:48
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('autenticacion', '0002_perfil_tipo_alter_perfil_genero'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='perfil',
|
||||
name='key',
|
||||
field=models.CharField(blank=True, max_length=250, null=True, verbose_name='Key'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='perfil',
|
||||
name='tipo',
|
||||
field=models.CharField(choices=[('Estudiante', 'Estudiante'), ('Docente', 'Docente'), ('Administrativo', 'Administrativo'), ('Visitante', 'Visitante')], default='Estudiante', max_length=20, verbose_name='Tipo'),
|
||||
),
|
||||
]
|
||||
18
autenticacion/migrations/0004_alter_perfil_cuatrimestre.py
Normal file
18
autenticacion/migrations/0004_alter_perfil_cuatrimestre.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0.5 on 2022-07-23 23:52
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('autenticacion', '0003_perfil_key_alter_perfil_tipo'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='perfil',
|
||||
name='cuatrimestre',
|
||||
field=models.IntegerField(default=0, verbose_name='Cuatrimestre'),
|
||||
),
|
||||
]
|
||||
20
autenticacion/migrations/0005_alter_perfil_cuatrimestre.py
Normal file
20
autenticacion/migrations/0005_alter_perfil_cuatrimestre.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# Generated by Django 4.0.5 on 2022-07-24 00:19
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('universidad', '0002_ncuatrimestre'),
|
||||
('autenticacion', '0004_alter_perfil_cuatrimestre'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='perfil',
|
||||
name='cuatrimestre',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='universidad.ncuatrimestre', verbose_name='Cuatrimestre'),
|
||||
),
|
||||
]
|
||||
18
autenticacion/migrations/0006_alter_perfil_cuatrimestre.py
Normal file
18
autenticacion/migrations/0006_alter_perfil_cuatrimestre.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0.5 on 2022-07-24 00:49
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('autenticacion', '0005_alter_perfil_cuatrimestre'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='perfil',
|
||||
name='cuatrimestre',
|
||||
field=models.CharField(choices=[('0', '0'), ('1', '1'), ('2', '2'), ('3', '3'), ('4', '4'), ('5', '5'), ('6', '6'), ('7', '7'), ('8', '8'), ('9', '9'), ('10', '10')], default=0, max_length=2, verbose_name='Cuatrimestre'),
|
||||
),
|
||||
]
|
||||
0
autenticacion/migrations/__init__.py
Normal file
0
autenticacion/migrations/__init__.py
Normal file
Reference in New Issue
Block a user