Fix license editor setting is_foss to true on edit

This commit is contained in:
rubenwardy 2018-07-28 17:47:08 +01:00
parent dfecf470fa
commit 404200b8f0
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def createedit_license_page(name=None):
abort(404)
form = LicenseForm(formdata=request.form, obj=license)
if request.method == "GET":
if request.method == "GET" and license is None:
form.is_foss.data = True
elif request.method == "POST" and form.validate():
if license is None: