diff options
author | CruiseDevice | 2020-09-08 20:16:59 +0530 |
---|---|---|
committer | ankitjavalkar | 2020-10-08 10:42:50 +0530 |
commit | 9b2da6c6bb03239d0d72e674ec66be0880cadcbc (patch) | |
tree | a8415ba87812d7349a496978aee8ed6fc4460340 | |
parent | 9ee0aed71778236917e5ef0738f991836a22445c (diff) | |
download | online_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.
-rw-r--r-- | yaksh/models.py | 4 |
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( |