Index: django/forms/models.py
===================================================================
--- django/forms/models.py	(revision 9082)
+++ django/forms/models.py	(working copy)
@@ -528,6 +528,7 @@
     if fk.unique:
         max_num = 1
     if exclude is not None:
+        exclude = list(exclude)
         exclude.append(fk.name)
     else:
         exclude = [fk.name]
Index: tests/regressiontests/inline_formsets/models.py
===================================================================
--- tests/regressiontests/inline_formsets/models.py	(revision 9082)
+++ tests/regressiontests/inline_formsets/models.py	(working copy)
@@ -51,5 +51,7 @@
 Exception: <class 'regressiontests.inline_formsets.models.Child'> has no field named 'test'
 
 
+# Regression test for #9171.
+>>> ifs = inlineformset_factory(Parent, Child, exclude=('school',), fk_name='mother')
 """
 }
