Commit 07fb3eab authored by Bruno Martin's avatar Bruno Martin
Browse files

fix circular dependency by using string version in model reference

parent 1b87a3f8
......@@ -2,12 +2,10 @@ from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.text import slugify
from courses.models import Course
class CourseMaterial(models.Model):
course = models.OneToOneField(
Course,
'Course',
models.CASCADE,
related_name='course_material',
verbose_name=_('Course Materials'),
......
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