'\'View on site should\' work properly with char fields'

def test_shortcut_view_with_escaping(self):

    model = ModelWithStringPrimaryKey(pk=u'abc_123')
    model.save()
    response = self.client.get((u'/test_admin/admin/admin_views/modelwithstringprimarykey/%s/' % quote(model.pk)))
    should_contain = (u'/%s/"    class="viewsitelink">' % model.pk)
    self.assertContains(response, should_contain)
