How can I tell pycharm that the return type of form.save() is, in this case, a CategoryQuestion object?
def category_ask(request, pk):
category = models.Category.objects.get(pk=pk)
if request.method == 'POST':
form = CategoryQuestion_form(request.POST)
question = form.save(commit=False)
question.who = request.user
When pycharm gets the type, it is wonderful. But so many cases like this pycharm has no clue!