Browse Source

added ProximoSemestre to django-admin

dmr1725 4 years ago
parent
commit
f1b93cdf71

BIN
server/CompanionApp/__pycache__/admin.cpython-38.pyc View File


BIN
server/CompanionApp/__pycache__/models.cpython-38.pyc View File


+ 2
- 1
server/CompanionApp/admin.py View File

@@ -1,8 +1,9 @@
1 1
 from django.contrib import admin
2
-from .models import Curso, Facultad, User,Matricula
2
+from .models import Curso, Facultad, User,Matricula, ProximoSemestre
3 3
 
4 4
 # Register your models here.
5 5
 admin.site.register(Facultad)
6 6
 admin.site.register(Curso)
7 7
 admin.site.register(User)
8 8
 admin.site.register(Matricula)
9
+admin.site.register(ProximoSemestre)

+ 1
- 1
server/CompanionApp/models.py View File

@@ -34,7 +34,7 @@ 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):
37
+class ProximoSemestre(models.Model):
38 38
     course_id = models.ForeignKey(Curso, on_delete=models.CASCADE, default=1)
39 39
     name = models.CharField(max_length=150)
40 40
     code = models.CharField(max_length=9)