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

[Comment] Imports #1

Open
mykljohn opened this issue Sep 23, 2017 · 1 comment
Open

[Comment] Imports #1

mykljohn opened this issue Sep 23, 2017 · 1 comment

Comments

@mykljohn
Copy link

Nice tool. I see you made a few changes. Kudos!

You should use get_model instead of import.

from oscar.core.loading import get_model

from portation.base import PortationBase


Product = get_model('catalogue', 'Product')
AttributeOption = get_model('catalogue', 'AttributeOption')
ProductAttributeValue = get_model('catalogue', 'ProductAttributeValue')
@dima-kov
Copy link
Owner

@mykljohn thanks for the comment and interest to the project.
I will change this as soon, as possible.

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

2 participants