StudentSubmission should have URL as document
This commit is contained in:
parent
329c068d80
commit
b870c4b35c
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 2.0.6 on 2018-10-02 14:35
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('assignments', '0002_auto_20181001_1254'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='studentsubmission',
|
||||
name='document',
|
||||
field=models.URLField(blank=True, default='', max_length=255),
|
||||
),
|
||||
]
|
||||
|
|
@ -20,7 +20,7 @@ class CustomAssignment(Assignment):
|
|||
|
||||
class StudentSubmission(TimeStampedModel):
|
||||
text = models.TextField(blank=True)
|
||||
document = models.FilePathField(null=True)
|
||||
document = models.URLField(blank=True, default='', max_length=255)
|
||||
assignment = models.ForeignKey(Assignment, on_delete=models.CASCADE, related_name='submissions')
|
||||
student = models.ForeignKey(get_user_model(), on_delete=models.CASCADE)
|
||||
final = models.BooleanField(default=False)
|
||||
|
|
|
|||
Loading…
Reference in New Issue