diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2009-02-03 14:02:09 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2009-02-03 14:02:09 +0000 |
| commit | 81ae2afdec8a81b94bacf02a1242277e0b4caceb (patch) | |
| tree | b09a8cc488cd8a730258cc376fe7ea533c17475d /django | |
| parent | ecadf675690c2cc9375e9af70ebd1528841eae76 (diff) | |
Fixed 10075: Allowed saving of inline-edited models that use multi-table inheritance.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -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 = [] |
