Commit d2bcc95a authored by Deokhyun Lee's avatar Deokhyun Lee

fixed name convention of the model

parent 9f82332a
from django.contrib import admin from django.contrib import admin
from .models import Assignment, Course
...@@ -9,7 +9,7 @@ class Course(models.Model): ...@@ -9,7 +9,7 @@ class Course(models.Model):
# Assignments # Assignments
# name; description; course; perfect_score; passing_score # name; description; course; perfect_score; passing_score
class Assignments(models.Model): class Assignment(models.Model):
name = models.CharField(max_length = 100) name = models.CharField(max_length = 100)
description = models.CharField(max_length = 1000) description = models.CharField(max_length = 1000)
course = models.ForeignKey(Course, on_delete = models.CASCADE) course = models.ForeignKey(Course, on_delete = models.CASCADE)
......
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