You need to set your default
keyword argument to the instance of Authors
that you want to be the default:
# Hypothetically, let's say that the current user makes the most sense
# This is just an example, for the sake of the thing
user = Authors.get(current_user.id)
ContentForm.author = QuerySelectField('Author', get_label='name', default=user)
Alternately, you can provide the instance to the field on instantiation:
# The author keyword will only be checked if
# author is not in request.form or content
myform = ContentForm(request.form, obj=content, author=user)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…