Loading tests/custom_managers/models.py +1 −0 Original line number Diff line number Diff line Loading @@ -117,6 +117,7 @@ class FunPerson(models.Model): def __str__(self): return "%s %s" % (self.first_name, self.last_name) @python_2_unicode_compatible class Book(models.Model): title = models.CharField(max_length=50) Loading tests/custom_managers/tests.py +0 −1 Original line number Diff line number Diff line Loading @@ -448,7 +448,6 @@ class CustomManagerTests(TestCase): ) self.b1.authors.add(droopy) # Check that the fun manager ONLY clears fun people. self.b1.authors(manager='fun_people').clear() self.assertQuerysetEqual( Loading Loading
tests/custom_managers/models.py +1 −0 Original line number Diff line number Diff line Loading @@ -117,6 +117,7 @@ class FunPerson(models.Model): def __str__(self): return "%s %s" % (self.first_name, self.last_name) @python_2_unicode_compatible class Book(models.Model): title = models.CharField(max_length=50) Loading
tests/custom_managers/tests.py +0 −1 Original line number Diff line number Diff line Loading @@ -448,7 +448,6 @@ class CustomManagerTests(TestCase): ) self.b1.authors.add(droopy) # Check that the fun manager ONLY clears fun people. self.b1.authors(manager='fun_people').clear() self.assertQuerysetEqual( Loading