summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 2e759ee..c8a4d4d 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -722,7 +722,7 @@ class Course(models.Model):
percent = round((count / len(modules)))
return percent
- def days_remain_to_start(self):
+ def days_before_start(self):
""" Get the days remaining for the start of the course """
if timezone.now() < self.start_enroll_time:
remaining_days = (self.start_enroll_time - timezone.now()).days + 1