Ingen beskrivning

0004_matricula.py 1.4KB

1234567891011121314151617181920212223242526272829303132
  1. # Generated by Django 3.0.8 on 2020-11-14 16:32
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. ('CompanionApp', '0003_delete_matricula'),
  8. ]
  9. operations = [
  10. migrations.CreateModel(
  11. name='Matricula',
  12. fields=[
  13. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  14. ('section', models.CharField(blank=True, max_length=5, null=True)),
  15. ('prof', models.CharField(blank=True, max_length=150, null=True)),
  16. ('semestre', models.IntegerField(default=0)),
  17. ('year', models.IntegerField(default=0)),
  18. ('fecha', models.CharField(blank=True, max_length=150)),
  19. ('grade', models.CharField(default='N', max_length=3)),
  20. ('salones', models.CharField(blank=True, max_length=100)),
  21. ('horarios', models.CharField(blank=True, max_length=150)),
  22. ('dias', models.CharField(blank=True, max_length=100)),
  23. ('course_id', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='CompanionApp.Curso')),
  24. ('user_id', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
  25. ],
  26. ),
  27. ]