def test_field_api(self):
    field = self.food_model._meta.get_field('tags')
    self.assertTrue(hasattr(field, 'rel'))
    self.assertTrue(hasattr(field.rel, 'to'))
    self.assertTrue(hasattr(field, 'related'))
    self.assertEqual(self.food_model, field.related.model)
def test_field_api(self):
    field = self.food_model._meta.get_field('tags')
    self.assertTrue(hasattr(field, 'rel'))
    self.assertTrue(hasattr(field.rel, 'to'))
    self.assertTrue(hasattr(field, 'related'))
    self.assertEqual(self.food_model, field.related.model)