Exemplo n.º 1
0
 def test_prefetch_related_mixin(self):
     instance = PrefetchRelatedMixin()
     self.assertRaises(ImproperlyConfigured,
                       instance.get_queryset)
     instance.relation_names = 'string'
     self.assertRaises(ImproperlyConfigured,
                       instance.get_queryset)
Exemplo n.º 2
0
 def test_prefetch_related_mixin(self):
     instance = PrefetchRelatedMixin()
     self.assertRaises(ImproperlyConfigured,
                       instance.get_queryset)
     instance.relation_names = 'string'
     self.assertRaises(ImproperlyConfigured,
                       instance.get_queryset)