Skip to content

Instantly share code, notes, and snippets.

@Ceasar
Created October 29, 2011 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ceasar/1324175 to your computer and use it in GitHub Desktop.
Save Ceasar/1324175 to your computer and use it in GitHub Desktop.
The department view.
def deptartment(request, dept):
dept = dept.upper()
department = Departent(pcr('depts', dept))
context = {'courses': [course for course in department.courses]}
return render_to_response('department.html', context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment