Internal Server Error: /layers/geonode:test_dataset/metadata
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.8/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File "./geonode/decorators.py", line 214, in _inner
return function(request, *args, **kwargs)
File "./geonode/layers/views.py", line 1114, in layer_metadata
layer.save(notify=True)
File "./geonode/base/models.py", line 1068, in save
super(ResourceBase, self).save(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/polymorphic/models.py", line 91, in save
return super(PolymorphicModel, self).save(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/django/db/models/base.py", line 743, in save
self.save_base(using=using, force_insert=force_insert,
File "/usr/local/lib/python3.8/site-packages/django/db/models/base.py", line 791, in save_base
post_save.send(
File "/usr/local/lib/python3.8/site-packages/django/dispatch/dispatcher.py", line 173, in send
return [
File "/usr/local/lib/python3.8/site-packages/django/dispatch/dispatcher.py", line 174, in <listcomp>
(receiver, receiver(signal=self, sender=sender, **named))
File "./geonode/decorators.py", line 57, in wrapper
return func(*args, **kwargs)
File "./geonode/geoserver/signals.py", line 82, in geoserver_post_save
payload = json_serializer_producer(instance_dict)
File "./geonode/utils.py", line 2072, in json_serializer_producer
output[x] = to_json(y)
File "./geonode/utils.py", line 2042, in to_json
return [json_serializer_producer(model_to_dict(k)) for k in keys]
File "./geonode/utils.py", line 2042, in <listcomp>
return [json_serializer_producer(model_to_dict(k)) for k in keys]
File "/usr/local/lib/python3.8/site-packages/django/forms/models.py", line 82, in model_to_dict
opts = instance._meta
AttributeError: 'str' object has no attribute '_meta'