Esempio 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)
Esempio 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)