コード例 #1
0
ファイル: models.py プロジェクト: jonathansadler/edx-platform
 def starts_within(self, days):
     """
     Returns True if the course starts with-in given number of days otherwise returns False.
     """
     return course_metadata_utils.course_starts_within(self.start, days)
コード例 #2
0
ファイル: models.py プロジェクト: CraftAcademy/edx-platform
    def starts_within(self, days):
        """
        Returns True if the course starts with-in given number of days otherwise returns False.
        """

        return course_metadata_utils.course_starts_within(self.start, days)