Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'WSGIRequest' object has no attribute 'id' #112

Closed
creimers opened this issue Oct 21, 2015 · 1 comment
Closed

'WSGIRequest' object has no attribute 'id' #112

creimers opened this issue Oct 21, 2015 · 1 comment

Comments

@creimers
Copy link

Django==1.8.4
django-oscar==1.1.1
django-oscar-paypal==0.9.5

Upon performing a GET request on this url

.../checkout/paypal/preview/53/?token=SOME_TOKEN&PayerID=SOME_ID

I get this error: 'WSGIRequest' object has no attribute 'id'.

More info from the traceback:

File ".../oscar/apps/offer/applicator.py", line 94, in get_basket_offers
if not basket.id or not user:
AttributeError: 'WSGIRequest' object has no attribute 'id'

I can comment out (this)[https://github.com/django-oscar/django-oscar-paypal/blob/master/paypal/express/views.py#L228] line to stop this from happening, but that's not the right thing to do of course.

Is this a bug potentially? Or might I have misconfigured something?

@creimers
Copy link
Author

Ooops, duplicate of #104.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant