<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Oliver,<div class=""><br class=""></div><div class="">I do not know of a settings variable to do so. Most likely It's needed to add this functionality</div><div class="">yourself. GeoNode project allows you to easily override some view. Hence you could try</div><div class="">to extend the layer_upload method </div><div class=""><br class=""></div><div class=""><a href="https://github.com/GeoNode/geonode/blob/master/geonode/layers/views.py#L208" class="">https://github.com/GeoNode/geonode/blob/master/geonode/layers/views.py#L208</a><br class=""><div><br class=""></div><div>and before saving set some category. Untested code just to show you what I mean:</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>from geonode.base.models import TopicCategory</div><div>        topics = TopicCategory.objects.all()</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>layer_cat = topics.get(identifier='social')</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>layer.category = layer_cat</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>layer.save()</div><div><br class=""></div><div><br class=""></div><div>Hope this helps,</div><div><br class=""></div><div>Cheers,</div><div><br class=""></div><div>Toni</div><div><br class=""><blockquote type="cite" class=""><div class="">Am 18.03.2020 um 20:00 schrieb <a href="mailto:geonode-devel-request@lists.osgeo.org" class="">geonode-devel-request@lists.osgeo.org</a>:</div><br class="Apple-interchange-newline"><div class=""><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin: 0px;" class=""><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">Von:<span class="Apple-converted-space"> </span></b></span><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif;" class="">EFTAS Oliver Buck <<a href="mailto:oliver.buck@eftas.com" class="">oliver.buck@eftas.com</a>><br class=""></span></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin: 0px;" class=""><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">Betreff:<span class="Apple-converted-space"> </span></b></span><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif;" class=""><b class="">[GeoNode-devel] set default layer category</b><br class=""></span></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin: 0px;" class=""><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">Datum:<span class="Apple-converted-space"> </span></b></span><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif;" class="">18. März 2020 um 09:28:14 MEZ<br class=""></span></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin: 0px;" class=""><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">An:<span class="Apple-converted-space"> </span></b></span><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif;" class="">"<a href="mailto:geonode-devel@lists.osgeo.org" class="">geonode-devel@lists.osgeo.org</a>" <<a href="mailto:geonode-devel@lists.osgeo.org" class="">geonode-devel@lists.osgeo.org</a>><br class=""></span></div><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; direction: ltr; font-family: Tahoma; font-size: 10pt;" class="">Dear all,<div class=""><br class=""></div><div class="">we would like to set a default category for a new layer upload. Is this fesaible. </div><div class=""><br class=""></div><div class="">If a new vector layer is uploaded, it should per default (changeable of course by the user, if he/she wishes) be set to a default category.</div><div class=""><br class=""></div><div class="">Any hints how to set this?</div><div class=""><br class=""></div><div class="">Thanks</div><div class="">oliver</div></div></div></blockquote></div><br class=""></div></body></html>