def create_release(request): form = ReleaseForm() if form.validate(request.form): form.save() return redirect(url_for('vault/list_releases')) return render_to_response('vault/new_release.html', {'form': form.as_widget()})
def new_release(request): form = ReleaseForm() return render_to_response('vault/new_release.html', {'form': form.as_widget()})