def add(): form = request.form print('!!project add form', form) # ImmutableMultiDict([('title', '的撒发射点法大师傅大师傅')]) u = current_user() t = Project.inserProject(form, u, None) return t
def add(gid): form = request.form print('!!project add form', form) # ImmutableMultiDict([('title', '的撒发射点法大师傅大师傅')]) u = current_user() g = Group.get_one_by(group_id=gid) t = Project.inserProject(form, u, g) return t