'Regression test for #14982: EMPTY_CHANGELIST_VALUE should be honored
for relationship fields'

def test_result_list_empty_changelist_value(self):

    new_child = Child.objects.create(name='name', parent=None)
    request = MockRequest()
    m = ChildAdmin(Child, admin.site)
    cl = ChangeList(request, Child, m.list_display, m.list_display_links, m.list_filter, m.date_hierarchy, m.search_fields, m.list_select_related, m.list_per_page, m.list_editable, m)
    cl.formset = None
    template = Template('{%    load    admin_list    %}{%    spaceless    %}{%    result_list    cl    %}{%    endspaceless    %}')
    context = Context({'cl': cl})
    table_output = template.render(context)
    row_html = ('<tbody><tr    class="row1"><td    class="action-checkbox"><input    type="checkbox"    class="action-select"    value="%d"    name="_selected_action"    /></td><th><a    href="%d/">name</a></th><td    class="nowrap">(None)</td></tr></tbody>' % (new_child.id, new_child.id))
    self.assertFalse((table_output.find(row_html) == (-1)), ('Failed    to    find    expected    row    element:    %s' % table_output))
