Permalink
Browse files

fixed random page LOL

  • Loading branch information...
hc5 committed Dec 10, 2012
1 parent a9865b0 commit 897ddf40e8167692aaeed18eb7c4d81b184fff39
Showing with 1 addition and 1 deletion.
  1. +1 −1 views/pages.py
View
@@ -269,4 +269,4 @@ def create(request, department, number, page_type, semester=None):
def random(request):
pages = Page.objects.all()
random_page = random_module.choice(pages)
- return show(request, random_page.course_sem.course.department.upper(), random_page.course_sem.course.number, random_page.page_type, random_page.course_sem.term, random_page.course_sem.year, random_page.slug)
+ return show(request, random_page.course_sem.course.department.short_name.upper(), random_page.course_sem.course.number, random_page.page_type, random_page.course_sem.term, random_page.course_sem.year, random_page.slug)

0 comments on commit 897ddf4

Please sign in to comment.