Commit 35ebdfdc by Diana Huang

Better handling of the expiration date.

LMS-1127
parent 17f3970f
......@@ -243,7 +243,7 @@ class DashboardTest(TestCase):
course_id=self.course.id,
mode_slug='verified',
mode_display_name='Verified',
expiration_date=datetime.now(pytz.UTC) + timedelta(days=1)
expiration_date=(datetime.now(pytz.UTC) + timedelta(days=1)).date()
)
enrollment = CourseEnrollment.enroll(self.user, self.course.id)
course_mode_info = complete_course_mode_info(self.course.id, enrollment)
......
......@@ -120,12 +120,6 @@
<a class="action action-upgrade" href="${reverse('course_modes_choose', kwargs={'course_id': course.id})}?upgrade=True">
<span class="wrapper-copy">
<span class="copy">${_("Upgrade to Verified Track")}</span>
%if course_mode_info['days_for_upsell']:
<span class="copy-sub">
${_('{days} days left!').format(days=course_mode_info['days_for_upsell'])}
</span>
%endif
</span>
</a>
</li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment