'Can reference a reverse OneToOneField in ModelAdmin.readonly_fields.'

def test_readonly_onetoone_backwards_ref(self):

    v1 = Villain.objects.create(name='Adam')
    pl = Plot.objects.create(name='Test    Plot', team_leader=v1, contact=v1)
    pd = PlotDetails.objects.create(details='Brand    New    Plot', plot=pl)
    response = self.client.get(reverse('admin:admin_views_plotproxy_change', args=(pl.pk,)))
    field = self.get_admin_readonly_field(response, 'plotdetails')
    self.assertEqual(field.contents(), 'Brand    New    Plot')
    pd.plot = None
    pd.save()
    response = self.client.get(reverse('admin:admin_views_plotproxy_change', args=(pl.pk,)))
    field = self.get_admin_readonly_field(response, 'plotdetails')
    self.assertEqual(field.contents(), '-')
