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

Fix ProductVariation creation when SHOP_USE_VARIATIONS=False #313

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yomguy
Copy link

@yomguy yomguy commented Nov 25, 2016

This fix a bug saving a Product with SHOP_USE_VARIATIONS=False

DoesNotExist at /admin/shop/product/add/
ProductVariation matching query does not exist.
Request Method:	POST
Request URL:	http://localhost:9020/admin/shop/product/add/
Django Version:	1.9.11
Exception Type:	DoesNotExist
Exception Value:	
ProductVariation matching query does not exist.
Exception Location:	/usr/local/lib/python3.5/site-packages/django/db/models/query.py in get, line 387
Python Executable:	/usr/local/bin/python
Python Version:	3.5.2
Python Path:	
['/srv/app',
 '/srv/lib/grappelli-safe',
 '/srv/lib/mezzanine',
 '/srv/lib/mezzanine-agenda',
 '/srv/lib/django-eve',
 '/srv/lib/django-prestashop',
 '/srv/lib/cartridge',
 '/usr/local/lib/python35.zip',
 '/usr/local/lib/python3.5',
 '/usr/local/lib/python3.5/plat-linux',
 '/usr/local/lib/python3.5/lib-dynload',
 '/usr/local/lib/python3.5/site-packages']

@ryneeverett
Copy link
Collaborator

It seems like it isn't supposed to be possible to have a Product with no variation when USE_PRODUCT_VARIATIONS=False. How does that happen?

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

Successfully merging this pull request may close these issues.

2 participants