@menu_item("races_monsters")
@submenu_item("monsters")
def monster_index_mobile(request):
    f = MonsterFilter(request.GET, queryset=Monster.objects.select_related(
        'rulebook', 'rulebook__dnd_edition', 'school').distinct())

    paginator = DndMobilePaginator(f.qs, request)

    form_submitted = 1 if '_filter' in request.GET else 0

    return render_to_response('dnd/mobile/monsters/monster_index.html',
                              {
                                  'request': request,
                                  'monster_list': paginator.items(),
                                  'paginator': paginator,
                                  'filter': f,
                                  'form_submitted': form_submitted,
                              }, context_instance=RequestContext(request), )
dataset/ETHPy150Open dndtools/dndtools/dndtools/dnd/mobile/monsters/views.py/monster_index_mobile/original