

@administrator_required
def index(request):
    categories = Category.objects.filter(parent=None, is_private=False)
    context = {
        'categories': categories,
    }
    return render(request, 'spirit/category/admin/index.html', context)

dataset/ETHPy150Open nitely/Spirit/spirit/category/admin/views.py index/original