[GeoNode-devel] GeoNode 2.10 Error on documents
Paolo Pasquali
paolo.pasquali at gmail.com
Tue Nov 24 02:25:13 PST 2020
Dear devs,
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.
Should I check out-of-date custom templates (e.g. search templates)? I've
upgraded from 2.10.2 to 2.10.4.
Please find the error below.
Thanks for your help.
Best,
Paolo
Internal Server Error: /api/documents/
Traceback (most recent call last):
File
"/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/tastypie/resources.py",
line 227, in wrapper
response = callback(request, *args, **kwargs)
File
"/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/tastypie/resources.py",
line 467, in dispatch_list
return self.dispatch('list', request, **kwargs)
File
"/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/tastypie/resources.py",
line 499, in dispatch
response = method(request, **kwargs)
File
"/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/geonode/api/resourcebase_api.py",
line 582, in get_list
request, to_be_serialized, response_objects=objects)
File
"/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/geonode/api/resourcebase_api.py",
line 650, in create_response
data['objects'])) if x['id'] in filtered_objects_ids]
File
"/home/ubuntu/.virtualenvs/haitidata/local/lib/python2.7/site-packages/geonode/api/resourcebase_api.py",
line 1029, in format_objects
username = obj.owner.get_username()
AttributeError: 'NoneType' object has no attribute 'get_username'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20201124/d35652aa/attachment.html>
More information about the geonode-devel
mailing list