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
 from django.contrib import admin
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
 # Register your models here.
4
 # Register your models here.
5
 admin.site.register(Facultad)
5
 admin.site.register(Facultad)
6
 admin.site.register(Curso)
6
 admin.site.register(Curso)
7
 admin.site.register(User)
7
 admin.site.register(User)
8
 admin.site.register(Matricula)
8
 admin.site.register(Matricula)
9
+admin.site.register(ProximoSemestre)

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

34
     dias =models.CharField(max_length=100,blank=True, null=True) 
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
     course_id = models.ForeignKey(Curso, on_delete=models.CASCADE, default=1)
38
     course_id = models.ForeignKey(Curso, on_delete=models.CASCADE, default=1)
39
     name = models.CharField(max_length=150)
39
     name = models.CharField(max_length=150)
40
     code = models.CharField(max_length=9)
40
     code = models.CharField(max_length=9)