Created
November 20, 2012 18:01
-
-
Save jcelliott/4119659 to your computer and use it in GitHub Desktop.
ValidationError
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Environment: | |
Request Method: GET | |
Request URL: http://127.0.0.1:8000/list/item/add/ | |
Django Version: 1.4.2 | |
Python Version: 2.6.5 | |
Installed Applications: | |
('django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.sites', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
'django.contrib.admin', | |
'django.contrib.admindocs', | |
'list') | |
Installed Middleware: | |
('django.middleware.common.CommonMiddleware', | |
'django.contrib.sessions.middleware.SessionMiddleware', | |
'django.middleware.csrf.CsrfViewMiddleware', | |
'django.contrib.auth.middleware.AuthenticationMiddleware', | |
'django.contrib.messages.middleware.MessageMiddleware') | |
Traceback: | |
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response | |
111. response = callback(request, *callback_args, **callback_kwargs) | |
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view | |
20. return view_func(request, *args, **kwargs) | |
File "/home/josh/projects/demo/list/views.py" in item | |
25. i = Item.objects.get(pk=id) | |
File "/usr/local/lib/python2.6/dist-packages/mongoengine/queryset.py" in get | |
822. result1 = self.next() | |
File "/usr/local/lib/python2.6/dist-packages/mongoengine/queryset.py" in next | |
1005. return self._document._from_son(self._cursor.next()) | |
File "/usr/local/lib/python2.6/dist-packages/mongoengine/queryset.py" in _cursor | |
605. self._cursor_obj = self._collection.find(self._query, | |
File "/usr/local/lib/python2.6/dist-packages/mongoengine/queryset.py" in _query | |
387. self._mongo_query = self._query_obj.to_query(self._document) | |
File "/usr/local/lib/python2.6/dist-packages/mongoengine/queryset.py" in to_query | |
212. query = query.accept(QueryCompilerVisitor(document)) | |
File "/usr/local/lib/python2.6/dist-packages/mongoengine/queryset.py" in accept | |
277. return visitor.visit_query(self) | |
File "/usr/local/lib/python2.6/dist-packages/mongoengine/queryset.py" in visit_query | |
169. return QuerySet._transform_query(self.document, **query.query) | |
File "/usr/local/lib/python2.6/dist-packages/mongoengine/queryset.py" in _transform_query | |
750. value = field.prepare_query_value(op, value) | |
File "/usr/local/lib/python2.6/dist-packages/mongoengine/base.py" in prepare_query_value | |
491. return self.to_mongo(value) | |
File "/usr/local/lib/python2.6/dist-packages/mongoengine/base.py" in to_mongo | |
487. self.error(unicode(e)) | |
File "/usr/local/lib/python2.6/dist-packages/mongoengine/base.py" in error | |
215. raise ValidationError(message, errors=errors, field_name=field_name) | |
Exception Type: ValidationError at /list/item/add/ | |
Exception Value: add is not a valid ObjectId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment