diff --git a/Assigment08.aux b/19.aux similarity index 100% rename from Assigment08.aux rename to 19.aux diff --git a/Assigment08.tex b/19.tex similarity index 100% rename from Assigment08.tex rename to 19.tex diff --git a/db.sqlite3 b/db.sqlite3 index 390809d..2d07582 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/website/migrations/0002_auto_20141115_1202.py b/website/migrations/0002_auto_20141115_1202.py new file mode 100644 index 0000000..022b43b --- /dev/null +++ b/website/migrations/0002_auto_20141115_1202.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='assignment', + name='points', + field=models.IntegerField(default=0), + preserve_default=False, + ), + migrations.AddField( + model_name='assignment', + name='received_submission', + field=models.BooleanField(default=True), + preserve_default=True, + ), + ] diff --git a/website/migrations/0003_auto_20141115_1229.py b/website/migrations/0003_auto_20141115_1229.py new file mode 100644 index 0000000..fa1d65b --- /dev/null +++ b/website/migrations/0003_auto_20141115_1229.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0002_auto_20141115_1202'), + ] + + operations = [ + migrations.AlterField( + model_name='assignment', + name='points', + field=models.IntegerField(null=True, blank=True), + preserve_default=True, + ), + ] diff --git a/website/migrations/0004_remove_submission_student.py b/website/migrations/0004_remove_submission_student.py new file mode 100644 index 0000000..c486e67 --- /dev/null +++ b/website/migrations/0004_remove_submission_student.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0003_auto_20141115_1229'), + ] + + operations = [ + migrations.RemoveField( + model_name='submission', + name='student', + ), + ] diff --git a/website/models.py b/website/models.py index dfbf6cd..20d1e7a 100644 --- a/website/models.py +++ b/website/models.py @@ -29,7 +29,6 @@ class Problem(models.Model): class Submission(models.Model): - student = models.ForeignKey(UserProfile) problem = models.ForeignKey(Problem) contents = models.TextField() score = models.IntegerField(null=True, blank=True) @@ -39,5 +38,5 @@ class Assignment(models.Model): name = models.CharField(max_length=CHARFIELD_MAX_LENGTH) due_date = models.DateTimeField() problems = models.ManyToManyField(Problem) - points = models.IntegerField() - received_submission = models.BooleanField(null=True, blank=True) \ No newline at end of file + points = models.IntegerField(null=True, blank=True) + received_submission = models.BooleanField(default=True) \ No newline at end of file diff --git a/Assigment08.pdf b/website/static/asgts/19.pdf similarity index 99% rename from Assigment08.pdf rename to website/static/asgts/19.pdf index 2731367..4a50d4e 100644 Binary files a/Assigment08.pdf and b/website/static/asgts/19.pdf differ diff --git a/website/templates/index.html b/website/templates/index.html index 2cd3c50..6d2a478 100644 --- a/website/templates/index.html +++ b/website/templates/index.html @@ -3,7 +3,7 @@ {% block title %}test{% endblock %} {% block content %} - +{{ success }}
{{assignment.due_date}} | {{assignment.name}} | Haven't started | -/{{assignment.points}} | +?/{{assignment.points}} | @@ -36,44 +37,16 @@ Select file Change - Remove + | |
{{assignment.due_date}} | -{{assignment.name}} | -Submitted | -47/{{assignment.points}} | -- | -- - Submitted on DATE - | -|
11/16/1994 | -Ramsey Theory | -Submitted | -VALUE/50 | -- | - Submitted on DATE -- - File sumitted on DATE - | -