Skip to content

Commit

Permalink
fix: date label for instructor paced courses
Browse files Browse the repository at this point in the history
  • Loading branch information
Anas12091101 committed Jan 3, 2025
1 parent b510cef commit afdb540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/courseware/date_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def date_type(self):
@property
def title(self):
enrollment = CourseEnrollment.get_enrollment(self.user, self.course_id)
if enrollment and self.course.end and enrollment.created > self.course.end:
if self.course.self_paced and enrollment and self.course.start and enrollment.created > self.course.start:
return gettext_lazy('Enrollment Date')
return gettext_lazy('Course starts')

Expand Down

0 comments on commit afdb540

Please sign in to comment.