Commit cf959f2e authored by jmAmador's avatar jmAmador

course model

parent cd5b903b
...@@ -2,9 +2,15 @@ from django.db import models ...@@ -2,9 +2,15 @@ from django.db import models
# Create your models here. # Create your models here.
class IndexCard(models.Model): class Assignments(models.Model):
name = models.CharField(max_length=100) name = models.CharField(max_length=100)
description = models.CharField(max_length=10000) description = models.CharField(max_length=10000)
course = models.CharField(max_length=10000) course = models.CharField(max_length=10000)
perfect_score = models.IntegerField() perfect_score = models.IntegerField()
passing_score = models.IntegerField() passing_score = perfect_score*0.6
class Course(models.Model):
code = models.CharField(max_length=10)
title = models.CharField(max_length=10000)
section = models.CharField(max_length=3)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment