diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2009-02-03 14:24:06 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2009-02-03 14:24:06 +0000 |
| commit | 962f0dbd7773a871f7a6a39ad28123249ec5586b (patch) | |
| tree | 488bf4e2fe0c7a05ee50646e09bcfd64dfa3f618 /django/forms | |
| parent | ebd30acd1298ba20d77c986c1cdf54b3db26402b (diff) | |
Fixed #10075: Allowed saving of inline-edited models that use multi-table inheritance.
r9809 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/models.py b/django/forms/models.py index 01bd912063..e6bbb98718 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -493,7 +493,7 @@ class BaseInlineFormSet(BaseModelFormSet): fk_attname = self.fk.get_attname() kwargs = {fk_attname: self.instance.pk} new_obj = self.model(**kwargs) - if fk_attname == self._pk_field.attname: + if fk_attname == self._pk_field.attname or self._pk_field.auto_created: exclude = [self._pk_field.name] else: exclude = [] |
