You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/vagrant/.venv/lib/python3.4/site-packages/django/core/handlers/exception.py" in inner
39. response = get_response(request)
File "/vagrant/.venv/lib/python3.4/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/vagrant/.venv/lib/python3.4/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/vagrant/.venv/lib/python3.4/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/vagrant/.venv/lib/python3.4/site-packages/django/views/decorators/csrf.py" in wrapped_view
58. return view_func(*args, **kwargs)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/viewsets.py" in view
83. return self.dispatch(request, *args, **kwargs)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/views.py" in dispatch
477. response = self.handle_exception(exc)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/views.py" in handle_exception
437. self.raise_uncaught_exception(exc)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/views.py" in dispatch
474. response = handler(request, *args, **kwargs)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/mixins.py" in list
48. return Response(serializer.data)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in data
725. ret = super(ListSerializer, self).data
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in data
262. self._data = self.to_representation(self.instance)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in to_representation
643. self.child.to_representation(item) for item in iterable
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in
643. self.child.to_representation(item) for item in iterable
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in to_representation
479. fields = self._readable_fields
File "/vagrant/.venv/lib/python3.4/site-packages/django/utils/functional.py" in get
35. res = instance.dict[self.name] = self.func(instance)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in _readable_fields
373. field for field in self.fields.values()
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in fields
359. for key, value in self.get_fields().items():
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in get_fields
980. field_names = self.get_field_names(declared_fields, info)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in get_field_names
1053. serializer_class=self.class.name
Exception Type: AssertionError at /api/v1/datasets/
Exception Value: ("Creating a ModelSerializer without either the 'fields' attribute or the 'exclude' attribute has been deprecated since 3.3.0, and is now disallowed. Add an explicit fields = 'all' to the DataSetSerializer serializer.",)
The text was updated successfully, but these errors were encountered:
Fixes#16
Could not reproduce the original error on a VM. The solution from the error message was to add *fields = '__all__'* which has been done for all serializers that didn't have a field attribute
Additionally, added instruction for setting up development on a local machine instead of using a VM
Fixes#16
Could not reproduce the original error on a VM. The solution from the error message was to add *fields = '__all__'* which has been done for all serializers that didn't have a field attribute
Additionally, added instruction for setting up development on a local machine instead of using a VM
Environment:
Request Method: GET
Request URL: http://localhost:9999/api/v1/datasets/
Django Version: 1.10.3
Python Version: 3.4.3
Installed Applications:
['ngt_archive',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'archive_api.apps.ArchiveApiConfig',
'rest_framework']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/vagrant/.venv/lib/python3.4/site-packages/django/core/handlers/exception.py" in inner
39. response = get_response(request)
File "/vagrant/.venv/lib/python3.4/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/vagrant/.venv/lib/python3.4/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/vagrant/.venv/lib/python3.4/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/vagrant/.venv/lib/python3.4/site-packages/django/views/decorators/csrf.py" in wrapped_view
58. return view_func(*args, **kwargs)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/viewsets.py" in view
83. return self.dispatch(request, *args, **kwargs)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/views.py" in dispatch
477. response = self.handle_exception(exc)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/views.py" in handle_exception
437. self.raise_uncaught_exception(exc)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/views.py" in dispatch
474. response = handler(request, *args, **kwargs)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/mixins.py" in list
48. return Response(serializer.data)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in data
725. ret = super(ListSerializer, self).data
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in data
262. self._data = self.to_representation(self.instance)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in to_representation
643. self.child.to_representation(item) for item in iterable
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in
643. self.child.to_representation(item) for item in iterable
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in to_representation
479. fields = self._readable_fields
File "/vagrant/.venv/lib/python3.4/site-packages/django/utils/functional.py" in get
35. res = instance.dict[self.name] = self.func(instance)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in _readable_fields
373. field for field in self.fields.values()
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in fields
359. for key, value in self.get_fields().items():
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in get_fields
980. field_names = self.get_field_names(declared_fields, info)
File "/vagrant/.venv/lib/python3.4/site-packages/rest_framework/serializers.py" in get_field_names
1053. serializer_class=self.class.name
Exception Type: AssertionError at /api/v1/datasets/
Exception Value: ("Creating a ModelSerializer without either the 'fields' attribute or the 'exclude' attribute has been deprecated since 3.3.0, and is now disallowed. Add an explicit fields = 'all' to the DataSetSerializer serializer.",)
The text was updated successfully, but these errors were encountered: