<div dir="ltr">Hi,<div><br></div><div>what you need is not trivial. GeoNode doesn't have a model for Thumbnails, they are managed through Links (<a href="https://github.com/GeoNode/geonode/blob/2.6.x/geonode/base/models.py#L892">https://github.com/GeoNode/geonode/blob/2.6.x/geonode/base/models.py#L892</a>), but a Link doesn't have a timestamp for its creation, so you would need something to read the files from the disk.</div><div><br></div><div>Maybe the way to go could be to create your own model for recent thumbnails and update their status in the db through a cron celery task. So your view would easily read from it.</div><div><br></div><div>Hope it helps and others ideas are welcome.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-20 10:35 GMT+02:00 Arisandi, Donny (ICRAF) <span dir="ltr"><<a href="mailto:D.Arisandi@cgiar.org" target="_blank">D.Arisandi@cgiar.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_5522147241849643877WordSection1">
<p class="MsoNormal">Dear all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I need your help to create query in views.py to show recent map thumbnail. Could you show me the sample how to do it?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thank you<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal">D<u></u><u></u></p>
</font></span></div>
</div>

<br>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>