diff options
author | Raphaël Barrois <raphael.barrois@polyconseil.fr> | 2015-03-27 17:57:10 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polyconseil.fr> | 2015-03-27 17:57:10 +0100 |
commit | 71f5d76c5ecb2b88cd734c9f2611d7dfad1dd923 (patch) | |
tree | 158f19c2b3994e043c0acb2adb65647d313508cf | |
parent | 48a1e4a65968a911d530c87cf0bcb9f312927641 (diff) | |
download | factory-boy-71f5d76c5ecb2b88cd734c9f2611d7dfad1dd923.tar factory-boy-71f5d76c5ecb2b88cd734c9f2611d7dfad1dd923.tar.gz |
Fix custom queryset tests for Django<1.7
-rw-r--r-- | tests/djapp/models.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/djapp/models.py b/tests/djapp/models.py index 1c1fd8e..513c47c 100644 --- a/tests/djapp/models.py +++ b/tests/djapp/models.py @@ -90,10 +90,6 @@ class WithSignals(models.Model): foo = models.CharField(max_length=20) -class CustomQuerySet(models.QuerySet): - pass - - class CustomManager(models.Manager): def create(self, arg=None, **kwargs): @@ -104,4 +100,4 @@ class WithCustomManager(models.Model): foo = models.CharField(max_length=20) - objects = CustomManager.from_queryset(CustomQuerySet)() + objects = CustomManager() |