diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-07-28 17:47:08 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-07-28 17:47:08 +0100 |
commit | 404200b8f0809a4aeb2b02b91db3d3682a59f692 (patch) | |
tree | 937102f237989c967a0dcecc40e219315c22e882 | |
parent | dfecf470fa6dffb41c75c13dbacaeefe9cee721c (diff) | |
download | cheatdb-404200b8f0809a4aeb2b02b91db3d3682a59f692.tar.xz |
Fix license editor setting is_foss to true on edit
-rw-r--r-- | app/views/licenseseditor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/licenseseditor.py b/app/views/licenseseditor.py index c4a1b56..343f4ee 100644 --- a/app/views/licenseseditor.py +++ b/app/views/licenseseditor.py @@ -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: |