mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed redundant QuerySet.all() calls in docs and tests.
Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
This commit is contained in:
@@ -28,8 +28,8 @@ class ProxyModelInheritanceTests(TransactionTestCase):
|
||||
from app1.models import ProxyModel
|
||||
from app2.models import NiceModel
|
||||
|
||||
self.assertEqual(NiceModel.objects.all().count(), 0)
|
||||
self.assertEqual(ProxyModel.objects.all().count(), 0)
|
||||
self.assertEqual(NiceModel.objects.count(), 0)
|
||||
self.assertEqual(ProxyModel.objects.count(), 0)
|
||||
|
||||
|
||||
class MultiTableInheritanceProxyTest(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user