Commit f5e34095 by Eric Fischer

Allow None FK on Submission model

Turns out you have to let the database know that a value can be None,
who knew? Migration included.
parent 2df28d2a
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('submissions', '0002_auto_20151119_0913'),
]
operations = [
migrations.AlterField(
model_name='submission',
name='student_item',
field=models.ForeignKey(to='submissions.StudentItem', null=True),
),
]
......@@ -103,7 +103,7 @@ class Submission(models.Model):
uuid = UUIDField(version=1, db_index=True)
student_item = models.ForeignKey(StudentItem)
student_item = models.ForeignKey(StudentItem, null=True)
# Which attempt is this? Consecutive Submissions do not necessarily have
# increasing attempt_number entries -- e.g. re-scoring a buggy problem.
......
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