def METHOD_NAME(admin_client, edit_link, theme):
    child_theme = Theme.objects.create(name="Child Theme", parent=theme)
    admin_client.post(edit_link, {"name": theme.name, "parent": child_theme.pk})
    theme.refresh_from_db()
    assert not theme.parent