

@menu_item(MenuItem.BESTIARY)
@submenu_item(MenuItem.Bestiary.MONSTERS)
def monsters_in_rulebook(request, rulebook_slug, rulebook_id):
    rulebook = get_object_or_404(Rulebook, pk=rulebook_id)
    if (not (rulebook.slug == rulebook_id)):
        return permanent_redirect_view(request, 'monsters_in_rulebook', kwargs={
            'rulebook_slug': rulebook.slug,
            'rulebook_id': rulebook_id,
        })
    monster_list = rulebook.monster_set.select_related('rulebook', 'rulebook__dnd_edition', 'school').all()
    paginator = DndPaginator(monster_list, request)
    return render_to_response('dnd/monsters/monsters_in_rulebook.html', {
        'rulebook': rulebook,
        'monster_list': paginator.items(),
        'paginator': paginator,
        'request': request,
        'display_3e_warning': is_3e_edition(rulebook.dnd_edition),
    }, context_instance=RequestContext(request))

dataset/ETHPy150Open dndtools/dndtools/dndtools/dnd/monsters/views.py monsters_in_rulebook/VarMisuse@51/84 `rulebook_slug`->`rulebook_id`