在这种情况下, 我如何告诉 pycharm form.save()的返回类型是CategoryQuestion对象?
def category_ask(request):
if request.method == 'POST':
form = CategoryQuestion_form(request.POST)
if form.is_valid():
question = form.save(commit=False)
question.who = request.user
question.dat<tab>