Browse Source

Use compatability layer for user in test

master
David Winterbottom 12 years ago
parent
commit
568715b9ca
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      tests/unit/wishlist_tests.py

+ 3
- 1
tests/unit/wishlist_tests.py View File

@@ -1,7 +1,9 @@
1 1
 from django.test import TestCase
2
-from django.contrib.auth.models import User
3 2
 
4 3
 from oscar.apps.wishlists.models import WishList
4
+from oscar.core.compat import get_user_model
5
+
6
+User = get_user_model()
5 7
 
6 8
 
7 9
 class TestAWishlist(TestCase):

Loading…
Cancel
Save