Skip to content

Commit

Permalink
Fixing styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Rutvikrj26 committed Jan 9, 2024
1 parent b0db135 commit 644c99c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion physionet-django/training/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def update_course_for_version_change(self, instance, number_of_days):

def expire_course_version(self, instance, number_of_days):
"""
This method expires the course by setting the is_active field to False and expires all the trainings associated with it.
This method expires the course by setting the is_active field to False and expires all
the trainings associated with it.
"""
self.is_active = False
self.update_course_for_version_change(instance, number_of_days)
Expand Down
1 change: 1 addition & 0 deletions physionet-django/training/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def expire_course(request, pk, version):
messages.success(request, 'Course expired successfully.')
return redirect('course_details', pk=pk)


@permission_required('training.change_course', raise_exception=True)
def download_course(request, pk, version):
"""
Expand Down

0 comments on commit 644c99c

Please sign in to comment.