From 9b2da6c6bb03239d0d72e674ec66be0880cadcbc Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Tue, 8 Sep 2020 20:16:59 +0530 Subject: Remove generic relation to Post from Course and Lesson. - Fixes breaking tests. --- yaksh/models.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'yaksh') 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( -- cgit