Actually you should use `assertNotContains(response, '"/test_admin/admin/r/%s/1/"' % content_type_pk)` to also account for `byte` response content on py3.