summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polyconseil.fr>2015-03-27 17:57:10 +0100
committerRaphaël Barrois <raphael.barrois@polyconseil.fr>2015-03-27 17:57:10 +0100
commit71f5d76c5ecb2b88cd734c9f2611d7dfad1dd923 (patch)
tree158f19c2b3994e043c0acb2adb65647d313508cf /tests
parent48a1e4a65968a911d530c87cf0bcb9f312927641 (diff)
downloadfactory-boy-71f5d76c5ecb2b88cd734c9f2611d7dfad1dd923.tar
factory-boy-71f5d76c5ecb2b88cd734c9f2611d7dfad1dd923.tar.gz
Fix custom queryset tests for Django<1.7
Diffstat (limited to 'tests')
-rw-r--r--tests/djapp/models.py6
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()