dima-kov / oscar-portation

Application for django oscar import/export
Other
6 stars 4 forks source link

[Comment] Imports #1

Open mykljohn opened 7 years ago

mykljohn commented 7 years ago

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 commented 7 years ago

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