Commit adfcb9f1 authored by Joan Denise Nocos's avatar Joan Denise Nocos

chore: populated passing_score field for Assignment model

parent fce4911f
# Generated by Django 3.2.12 on 2022-04-05 10:23 # Generated by Django 3.2.12 on 2022-04-05 19:29
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
......
...@@ -7,8 +7,7 @@ class Course(models.Model): ...@@ -7,8 +7,7 @@ class Course(models.Model):
section = models.CharField(max_length=3) section = models.CharField(max_length=3)
class Assignment(models.Model): class Assignment(models.Model):
course = models.ForeignKey(Course, on_delete=models.CASCADE) course = models.ForeignKey(Course, on_delete=models.CASCADE, null=True)
course.null = True
name = models.CharField(max_length=50) name = models.CharField(max_length=50)
description = models.CharField(max_length=500) description = models.CharField(max_length=500)
max_points = models.IntegerField(default=0) max_points = models.IntegerField(default=0)
......
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