diff --git a/django/oldforms/__init__.py b/django/oldforms/__init__.py index e43bc9fa426..decf0f7064f 100644 --- a/django/oldforms/__init__.py +++ b/django/oldforms/__init__.py @@ -225,7 +225,7 @@ class InlineObjectCollection(object): self.data = data self.errors = errors self._collections = None - self.name = rel_obj.opts.module_name + self.name = rel_obj.name def __len__(self): self.fill()