Fix license editor setting is_foss to true on edit
This commit is contained in:
parent
dfecf470fa
commit
404200b8f0
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue