Skip to content

Missing container_path

Error on resource creation:

Traceback (most recent call last):
  File "/var/www/united4earth/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/rest_framework/viewsets.py", line 116, in view
    return self.dispatch(request, *args, **kwargs)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/djangoldp/views.py", line 135, in dispatch
    response = super(LDPViewSet, self).dispatch(request, *args, **kwargs)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/rest_framework/views.py", line 495, in dispatch
    response = self.handle_exception(exc)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/rest_framework/views.py", line 455, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/rest_framework/views.py", line 492, in dispatch
    response = handler(request, *args, **kwargs)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/rest_framework/mixins.py", line 20, in create
    serializer.is_valid(raise_exception=True)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/rest_framework/serializers.py", line 236, in is_valid
    self._validated_data = self.run_validation(self.initial_data)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/rest_framework/serializers.py", line 434, in run_validation
    value = self.to_internal_value(data)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/rest_framework/serializers.py", line 489, in to_internal_value
    primitive_value = field.get_value(data)
  File "/var/www/united4earth/env/lib/python3.6/site-packages/djangoldp/serializers.py", line 327, in get_value
    container_id = Model.container_path(self.parent.instance)
AttributeError: type object 'Model' has no attribute 'container_path'
[11/Mar/2019 13:51:27] "POST /api/action-groups/ HTTP/1.1" 500 16613