Permalink
Browse files

fix to enable extended Cart model subclass from BaseCart

  • Loading branch information...
1 parent 0326668 commit 9d63a63f8c528acee2e5c51bb92eb1ac5da94b4e @vilos vilos committed Sep 12, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 shop/util/loader.py
View
@@ -48,5 +48,4 @@ def get_model_string(model_name):
if not class_path:
return 'shop.%s' % model_name
else:
- klass = load_class(class_path)
- return '%s.%s' % (klass._meta.app_label, klass.__name__)
+ return class_path.replace('.models.', '.')

0 comments on commit 9d63a63

Please sign in to comment.