summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorCruiseDevice2020-09-08 20:16:59 +0530
committerankitjavalkar2020-10-08 10:42:50 +0530
commit9b2da6c6bb03239d0d72e674ec66be0880cadcbc (patch)
treea8415ba87812d7349a496978aee8ed6fc4460340 /yaksh
parent9ee0aed71778236917e5ef0738f991836a22445c (diff)
downloadonline_test-9b2da6c6bb03239d0d72e674ec66be0880cadcbc.tar.gz
online_test-9b2da6c6bb03239d0d72e674ec66be0880cadcbc.tar.bz2
online_test-9b2da6c6bb03239d0d72e674ec66be0880cadcbc.zip
Remove generic relation to Post from Course and Lesson.
- Fixes breaking tests.
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/models.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index c6d6f7b..67f981e 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -310,9 +310,6 @@ class Lesson(models.Model):
help_text="Youtube id, vimeo id, others"
)
- post = GenericRelation('Post', related_query_name='lessons')
-
-
def __str__(self):
return "{0}".format(self.name)
@@ -923,7 +920,6 @@ class Course(models.Model):
view_grade = models.BooleanField(default=False)
learning_module = models.ManyToManyField(LearningModule,
related_name='learning_module')
- post = GenericRelation('Post', related_query_name='courses')
# The start date of the course enrollment.
start_enroll_time = models.DateTimeField(