Raises "can't adapt" ProgrammingError exception on checkout

Issue #160 resolved
mike
created an issue

Not sure what is happening here. Sometimes I get the ProgrammingError going from the cart to checkout, sometimes on going from the "ship/bill" checkout page to the "payment" checkout page. Here's a traceback:

{{{ Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/handlers/base.py" in _real_get_response 81. response = callback(request, callback_args, callback_kwargs) File "/Users/mike/dev/django_projects/satchmo/satchmo/payment/views.py" in contact_info 4. return common_contact.contact_info(request) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/contrib/auth/decorators.py" in _checklogin 17. return view_func(request, *args, kwargs) File "/Users/mike/dev/django_projects/satchmo/satchmo/payment/common/views/common_contact.py" in contact_info 34. contact = Contact.from_request(request, create=False) File "/Users/mike/dev/django_projects/satchmo/satchmo/contact/models.py" in from_request 102. contact = cls.objects.get(id=request.session['custID']) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/models/manager.py" in get 69. return self.get_query_set().get(args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/models/query.py" in get 261. obj_list = list(clone) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/models/query.py" in iter 114. return iter(self._get_data()) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/models/query.py" in _get_data 482. self._result_cache = list(self.iterator()) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/models/query.py" in iterator 189. cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + ",".join(select) + sql, params) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/backends/util.py" in execute 19. return self.cursor.execute(sql, params)

ProgrammingError at /shop/checkout/ can't adapt }}}

mike.

Comments (3)

  1. mike reporter

    [<Contact: Mike>]

    A list with a single Contact object.

    The first time I try to checkout after a DB rebuild, it fails between the "ship/bill" and "payment" stages. If I then retry the checkout process without rebuilding the DB, it fails before the "ship/bill" stage.

  2. Log in to comment