<div dir="ltr"><div dir="ltr">Dear devs,<div><br></div><div>I'm getting an error on documents. The list of documents does not appear but if I apply some filters (e.g. Document Type) the list seems correct. I have no problem on layer and map lists.</div><div>Should I check out-of-date custom templates (e.g. search templates)? I've upgraded from 2.10.2 to 2.10.4.</div><div>Please find the error below.</div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Best,</div><div><br></div><div>Paolo</div><div><br></div><div><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">Internal Server Error: /api/documents/</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">Traceback (most recent call last):</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">  File "/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/tastypie/resources.py", line 227, in wrapper</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">    response = callback(request, *args, **kwargs)</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">  File "/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/tastypie/resources.py", line 467, in dispatch_list</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">    return self.dispatch('list', request, **kwargs)</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">  File "/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/tastypie/resources.py", line 499, in dispatch</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">    response = method(request, **kwargs)</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">  File "/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/geonode/api/resourcebase_api.py", line 582, in get_list</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">    request, to_be_serialized, response_objects=objects)</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">  File "/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/geonode/api/resourcebase_api.py", line 650, in create_response</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">    data['objects'])) if x['id'] in filtered_objects_ids]</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">  File "/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/geonode/api/resourcebase_api.py", line 1029, in format_objects</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">    username = obj.owner.get_username()</font></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><font face="monospace">AttributeError: 'NoneType' object has no attribute 'get_username'</font></span></p></div></div></div>