'Regression test for #5931: __repr__ of a field also displays its name'

def test_field_repr(self):

    f = Foo._meta.get_field(u'a')
    self.assertEqual(repr(f), u'<django.db.models.fields.CharField:    a>')
    f = models.fields.CharField()
    self.assertEqual(repr(f), u'<django.db.models.fields.CharField>')
