diff options
author | adityacp | 2018-03-08 14:34:17 +0530 |
---|---|---|
committer | adityacp | 2018-03-08 14:34:17 +0530 |
commit | b0df46ec36a043d3c51014cf5746d7def9cb17b9 (patch) | |
tree | 7157d35df4e28350f4abacfcc09c7bf830b08a93 /yaksh/models.py | |
parent | 3bbaff2ebca026042cce3deb025effb9e83e0859 (diff) | |
download | online_test-b0df46ec36a043d3c51014cf5746d7def9cb17b9.tar.gz online_test-b0df46ec36a043d3c51014cf5746d7def9cb17b9.tar.bz2 online_test-b0df46ec36a043d3c51014cf5746d7def9cb17b9.zip |
Change model method name in course model
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 2 |
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 |