Ver código fonte

added ProximoSemestre to django-admin

dmr1725 4 anos atrás
pai
commit
f1b93cdf71

BIN
server/CompanionApp/__pycache__/admin.cpython-38.pyc Ver arquivo


BIN
server/CompanionApp/__pycache__/models.cpython-38.pyc Ver arquivo


+ 2
- 1
server/CompanionApp/admin.py Ver arquivo

@@ -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 Ver arquivo

@@ -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)