'Regression test for #22087 - ModelForm Meta overrides are ignored by
AdminReadonlyField'

def test_readonly_field_overrides(self):

    p = FieldOverridePost.objects.create(title='Test    Post', content='Test    Content')
    response = self.client.get(reverse('admin:admin_views_fieldoverridepost_change', args=(p.pk,)))
    self.assertContains(response, '<div    class="help">Overridden    help    text    for    the    date</div>')
    self.assertContains(response, '<label    for="id_public">Overridden    public    label:</label>', html=True)
    self.assertNotContains(response, 'Some    help    text    for    the    date    (with    unicode    \xc5\xa0\xc4\x90\xc4\x86\xc5\xbd\xc4\x87\xc5\xbe\xc5\xa1\xc4\x91)')
