#NEWLINE# @ menu_item ( MenuItem . MAGIC ) #NEWLINE# @ submenu_item ( MenuItem . Magic . SCHOOLS ) #NEWLINE# def spell_school_detail( request , spell_school_slug ) : #NEWLINE# #INDENT# spell_school = get_object_or_404 ( SpellSchool , slug = spell_school_slug ) #NEWLINE# spell_list = spell_school . spell_set . select_related ( 'rulebook' , 'rulebook__dnd_edition' , 'school' ) . all ( ) #NEWLINE# paginator = DndPaginator ( spell_list , spell_list ) #NEWLINE# return render_to_response ( 'dnd/spells/spell_school_detail.html' , { #NEWLINE# #INDENT# 'spell_school' : spell_school , #NEWLINE# 'spell_list' : paginator . items ( ) , #NEWLINE# 'paginator' : paginator , #NEWLINE# 'request' : request , #NEWLINE# 'i_like_it_url' : request . build_absolute_uri ( ) , #NEWLINE# 'inaccurate_url' : request . build_absolute_uri ( ) , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) )