Commit 2034a8e6 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'fix-django20warning' into 'master'

Fix some django 2.0 warnings

woop woop

See merge request !110
parents b622cdc6 3eb3eb47
......@@ -100,6 +100,7 @@ class Exam(models.Model):
uploader = models.ForeignKey(
settings.AUTH_USER_MODEL,
verbose_name=_('uploader'),
on_delete=models.CASCADE,
)
uploader_date = models.DateField(
......@@ -122,6 +123,7 @@ class Exam(models.Model):
course = models.ForeignKey(
Course,
verbose_name=_("course"),
on_delete=models.CASCADE,
)
def __str__(self):
......@@ -152,6 +154,7 @@ class Summary(models.Model):
uploader = models.ForeignKey(
settings.AUTH_USER_MODEL,
verbose_name=_('uploader'),
on_delete=models.CASCADE,
)
uploader_date = models.DateField(
......@@ -168,6 +171,7 @@ class Summary(models.Model):
course = models.ForeignKey(
Course,
verbose_name=_("course"),
on_delete=models.CASCADE,
)
accepted = models.BooleanField(
......
Supports Markdown
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