dellsystem/wikinotes — Issue #30: Too much repetition in page-related views
Author: dellsystem
Created: 2011-10-23 05:52:27+00:00
State: open
Labels: Code maintenance

For example:

```python
course = get_object_or_404(Course, department=department, number=int(number))
course_sem = get_object_or_404(CourseSemester, course=course, term=term, year=year)
page = get_object_or_404(Page, course_sem=course_sem, page_type=page_type, slug=slug)
```

or some variation is in pretty much every view. That shouldn't happen.

Courses too, to some degree.