Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Convert courses_recent view to using the decorator
Browse files Browse the repository at this point in the history
I think the rest of the change was accidentally committed earlier oops
  • Loading branch information
dellsystem committed Feb 7, 2014
1 parent fdca45a commit 04fcac3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions views/courses.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,8 @@ def semester_overview(request, course_sem):
}


def recent(request, department, number):
course = get_object_or_404(Course, department=department,
number=int(number))
@show_object_detail(Course)
def recent(request, course):
raw_history = course.recent_activity(limit=0) # order: newest to oldest
temp_history = []

Expand Down

0 comments on commit 04fcac3

Please sign in to comment.