Bläddra i källkod

added ProximoSemestre in master branch, no supe como hacer el merge

dmr1725 4 år sedan
förälder
incheckning
5299d0cd04

Binär
server/CompanionApp/__pycache__/models.cpython-38.pyc Visa fil


+ 29
- 0
server/CompanionApp/migrations/0012_proxiosemestre.py Visa fil

@@ -0,0 +1,29 @@
1
+# Generated by Django 3.0.8 on 2020-12-07 14:38
2
+
3
+from django.db import migrations, models
4
+import django.db.models.deletion
5
+
6
+
7
+class Migration(migrations.Migration):
8
+
9
+    dependencies = [
10
+        ('CompanionApp', '0011_auto_20201207_0948'),
11
+    ]
12
+
13
+    operations = [
14
+        migrations.CreateModel(
15
+            name='ProxioSemestre',
16
+            fields=[
17
+                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
18
+                ('name', models.CharField(max_length=150)),
19
+                ('code', models.CharField(max_length=9)),
20
+                ('creditos', models.IntegerField(default=0)),
21
+                ('section', models.CharField(blank=True, max_length=5, null=True)),
22
+                ('prof', models.CharField(blank=True, max_length=150, null=True)),
23
+                ('hours', models.CharField(blank=True, max_length=150, null=True)),
24
+                ('days', models.CharField(blank=True, max_length=100, null=True)),
25
+                ('rooms', models.CharField(blank=True, max_length=100, null=True)),
26
+                ('course_id', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='CompanionApp.Curso')),
27
+            ],
28
+        ),
29
+    ]

Binär
server/CompanionApp/migrations/__pycache__/0012_proxiosemestre.cpython-38.pyc Visa fil


+ 10
- 0
server/CompanionApp/models.py Visa fil

@@ -34,3 +34,13 @@ class Matricula(models.Model):
34 34
     dias =models.CharField(max_length=100,blank=True, null=True) 
35 35
 
36 36
 
37
+class ProxioSemestre(models.Model):
38
+    course_id = models.ForeignKey(Curso, on_delete=models.CASCADE, default=1)
39
+    name = models.CharField(max_length=150)
40
+    code = models.CharField(max_length=9)
41
+    creditos = models.IntegerField(default=0)
42
+    section = models.CharField(max_length=5, null=True, blank=True)
43
+    prof = models.CharField(max_length=150, null=True, blank=True)
44
+    hours =models.CharField(max_length=150,blank=True, null=True) 
45
+    days =models.CharField(max_length=100,blank=True, null=True) 
46
+    rooms =models.CharField(max_length=100,blank=True, null=True)