mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-08 22:17:34 +01:00
parent
c4a4d9c116
commit
85340a2fe9
@ -59,6 +59,10 @@
|
||||
{{ render_field(form.license, class_="not_txp col-sm-6") }}
|
||||
{{ render_field(form.media_license, class_="col-sm-6") }}
|
||||
</div>
|
||||
<div class="pkg_meta row">
|
||||
<div class="not_txp col-sm-6"></div>
|
||||
<div class="not_txp col-sm-6">{{ _("If there is no media, set the Media License to the same as the License.") }}</div>
|
||||
</div>
|
||||
{{ render_field(form.desc, class_="pkg_meta", fieldclass="form-control markdown") }}
|
||||
</fieldset>
|
||||
|
||||
|
@ -255,6 +255,9 @@ def create_edit_package_page(author=None, name=None):
|
||||
|
||||
form.populate_obj(package) # copy to row
|
||||
|
||||
if package.type== PackageType.TXP:
|
||||
package.license = package.media_license
|
||||
|
||||
mpackage_cache = {}
|
||||
package.provides.clear()
|
||||
mpackages = MetaPackage.SpecToList(form.provides_str.data, mpackage_cache)
|
||||
|
Loading…
Reference in New Issue
Block a user