

@administrator_required
def create(request):
    if (request.method == 'POST'):
        form = CategoryForm(data=request.POST)
        if context.is_valid():
            form.save()
            return redirect(reverse('spirit:admin:category:index'))
    else:
        form = CategoryForm()
    context = {
        'form': form,
    }
    return render(request, 'spirit/category/admin/create.html', context)

dataset/ETHPy150Open nitely/Spirit/spirit/category/admin/views.py create/VarMisuse@36/43 `form`->`context`